[Rt-commit] r12558 - in rt/branches/3.8-TESTING: share/html/REST/1.0/Forms/ticket

sartak at bestpractical.com sartak at bestpractical.com
Tue May 20 14:10:49 EDT 2008


Author: sartak
Date: Tue May 20 14:10:49 2008
New Revision: 12558

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/share/html/REST/1.0/Forms/ticket/default

Log:
 r56425 at onn:  sartak | 2008-05-20 14:06:40 -0400
 Use Time::ParseDate in the REST form update (instead of expecting the user to give us a SQL date)


Modified: rt/branches/3.8-TESTING/share/html/REST/1.0/Forms/ticket/default
==============================================================================
--- rt/branches/3.8-TESTING/share/html/REST/1.0/Forms/ticket/default	(original)
+++ rt/branches/3.8-TESTING/share/html/REST/1.0/Forms/ticket/default	Tue May 20 14:10:49 2008
@@ -265,7 +265,9 @@
             my $time = new RT::Date $session{CurrentUser};
             $time->Set(Format => 'sql', Value => $ticket->$key);
             next if ($val =~ /^not set$/i || $val eq $time->AsString);
-            ($n, $s) = $ticket->$set($val);
+
+            $time->Set(Format => 'unknown', Value => $val);
+            ($n, $s) = $ticket->$set($time->ISO);
         }
         elsif (exists $people{$key}) {
             $key = $people{$key};


More information about the Rt-commit mailing list