[Rt-commit] r5307 - rt/branches/3.5-TESTING/html/REST/1.0/Forms/ticket

ruz at bestpractical.com ruz at bestpractical.com
Fri May 26 12:42:33 EDT 2006


Author: ruz
Date: Fri May 26 12:42:33 2006
New Revision: 5307

Modified:
   rt/branches/3.5-TESTING/html/REST/1.0/Forms/ticket/default

Log:
* vsplit Requestor, Cc and AdminCc field on create

Modified: rt/branches/3.5-TESTING/html/REST/1.0/Forms/ticket/default
==============================================================================
--- rt/branches/3.5-TESTING/html/REST/1.0/Forms/ticket/default	(original)
+++ rt/branches/3.5-TESTING/html/REST/1.0/Forms/ticket/default	Fri May 26 12:42:33 2006
@@ -145,6 +145,9 @@
             }
         }
 
+        # people fields allow multiple values
+        $v{$_} = vsplit($v{$_}) foreach ( grep $create{lc $_}, @people );
+
         if ($text) {
             $v{MIMEObj} =
                 MIME::Entity->build(
@@ -185,7 +188,7 @@
     }
 
     foreach $key (@people) {
-	next unless (!%$fields || (exists $fields->{lc $key}));
+        next unless (!%$fields || (exists $fields->{lc $key}));
         push @data, [ $key => [ $ticket->$key->MemberEmailAddresses ] ];
     }
 


More information about the Rt-commit mailing list