Properly formats values before requiring list creation.
authorStéphane Jacob <sj@m4x.org>
Sat, 22 Oct 2011 22:10:39 +0000 (00:10 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 22 Oct 2011 22:10:39 +0000 (00:10 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/validations/listes.inc.php

index b5bcd15..1897b05 100644 (file)
@@ -134,10 +134,14 @@ class ListeReq extends Validate
                 add_to_list_alias($member, $this->liste, $this->domain);
             }
         } else {
+            $members = User::getBulkForlifeEmails($this->members, true,
+                                                  array('ListsModule', 'no_login_callback'));
+            $owners = User::getBulkForlifeEmails($this->owners, true,
+                                                 array('ListsModule', 'no_login_callback'));
             $list = new MMList(S::user(), $this->domain);
             $success = $list->create_list($this->liste, utf8_decode($this->desc), $this->advertise,
                                           $this->modlevel, $this->inslevel,
-                                          $this->owners, $this->members);
+                                          $owners, $members);
             if ($success) {
                 create_list($this->liste, $this->domain);
             }