[Rt-commit] r19384 - in rt/3.8/trunk: share/html/REST/1.0/Forms/ticket

sartak at bestpractical.com sartak at bestpractical.com
Thu Apr 30 17:15:15 EDT 2009


Author: sartak
Date: Thu Apr 30 17:15:15 2009
New Revision: 19384

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

Log:
 r82596 at onn:  sartak | 2009-04-30 17:14:33 -0400
 Do not attempt to update LastUpdated in the REST interface


Modified: rt/3.8/trunk/share/html/REST/1.0/Forms/ticket/default
==============================================================================
--- rt/3.8/trunk/share/html/REST/1.0/Forms/ticket/default	(original)
+++ rt/3.8/trunk/share/html/REST/1.0/Forms/ticket/default	Thu Apr 30 17:15:15 2009
@@ -285,6 +285,12 @@
         }
         elsif (exists $dates{$key}) {
             $key = $dates{$key};
+
+            # LastUpdated might be updated automatically based on
+            # nondeterministic ordering (by changing any other field), so
+            # always just skip updating it to avoid "Immutable field" warnings
+            next if $key eq 'LastUpdated';
+
             $set = "Set$key";
 
             my $time = new RT::Date $session{CurrentUser};


More information about the Rt-commit mailing list