SOURCES: eventum-mail-aliases.patch - mail aliases field is not re...

glen glen at pld-linux.org
Tue Mar 13 16:28:56 CET 2007


Author: glen                         Date: Tue Mar 13 15:28:56 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- mail aliases field is not required

---- Files affected:
SOURCES:
   eventum-mail-aliases.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/eventum-mail-aliases.patch
diff -u SOURCES/eventum-mail-aliases.patch:1.2 SOURCES/eventum-mail-aliases.patch:1.3
--- SOURCES/eventum-mail-aliases.patch:1.2	Mon Mar 12 20:23:32 2007
+++ SOURCES/eventum-mail-aliases.patch	Tue Mar 13 16:28:51 2007
@@ -14,22 +14,24 @@
 ===================================================================
 --- templates/manage/projects.tpl.html	(revisione 3273)
 +++ templates/manage/projects.tpl.html	(copia locale)
-@@ -43,6 +43,14 @@
+@@ -43,6 +43,16 @@
                        alert('{/literal}{t escape=js}Please enter a valid outgoing sender address for this project.{/t}{literal}');
                        return false;
                    }
-+                  aliases = f.mail_aliases.value.split(',');
-+                  for (idx in aliases) {
-+	                  if (!isEmail(aliases[idx])) {
-+	                      selectField(f, 'mail_aliases');
-+	                      alert('{/literal}{t escape=js}Please enter a comma separated list of valid mail address aliases for this project{/t}{literal}');
-+	                      return false;
-+	                  }
-+                  }
++                  if (f.mail_aliases.value) {
++                      aliases = f.mail_aliases.value.split(',');
++                      for (idx in aliases) {
++	                      if (!isEmail(aliases[idx])) {
++	                          selectField(f, 'mail_aliases');
++	                          alert('{/literal}{t escape=js}Please enter a comma separated list of valid mail address aliases for this project{/t}{literal}');
++	                          return false;
++	                      }
++                      }
++		  }
                    return true;
                }
                function checkLeadSelection(f)
-@@ -191,6 +199,15 @@
+@@ -191,6 +201,15 @@
                  </td>
                </tr>
                <tr>
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/eventum-mail-aliases.patch?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list