[Rt-commit] rt branch, 3.999-trunk, updated. c73b757f8f18660a0d80bbebc69977afa4b2b09c

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Nov 5 02:39:44 EST 2009


The branch, 3.999-trunk has been updated
       via  c73b757f8f18660a0d80bbebc69977afa4b2b09c (commit)
      from  202e9e99ff51d78e3f28fd7577ebe31899171e44 (commit)

Summary of changes:
 share/html/REST/1.0/Forms/ticket/default |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit c73b757f8f18660a0d80bbebc69977afa4b2b09c
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Nov 5 14:35:30 2009 +0800

    small fix to share/html/REST/1.0/Forms/ticket/default

diff --git a/share/html/REST/1.0/Forms/ticket/default b/share/html/REST/1.0/Forms/ticket/default
index 0c4753b..f31de5c 100755
--- a/share/html/REST/1.0/Forms/ticket/default
+++ b/share/html/REST/1.0/Forms/ticket/default
@@ -340,9 +340,8 @@ else {
             $e = 1;
             push @comments, "# $key: $s";
             unless (@$o) {
-                my %o = keys %$changes;
-                delete $o{id};
-                @$o = ("id", keys %o);
+                # move id forward
+                @$o = ("id", grep { $_ ne 'id' } keys %$changes);
                 $k = $changes;
             }
         }

-----------------------------------------------------------------------


More information about the Rt-commit mailing list