[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.6-36-gd58e655
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Mon Oct 26 22:14:28 EDT 2009
The branch, 3.8-trunk has been updated
via d58e655c8d39bddef64c68f8c4154b9018cc12e1 (commit)
from 10dbd767bb098cd4ff0b9ab55151f8e82137db44 (commit)
Summary of changes:
share/html/REST/1.0/Forms/ticket/default | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit d58e655c8d39bddef64c68f8c4154b9018cc12e1
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Oct 27 09:27:25 2009 +0800
refactor a little
diff --git a/share/html/REST/1.0/Forms/ticket/default b/share/html/REST/1.0/Forms/ticket/default
index 2af68f8..b82cb5e 100755
--- a/share/html/REST/1.0/Forms/ticket/default
+++ b/share/html/REST/1.0/Forms/ticket/default
@@ -431,9 +431,8 @@ else {
$e = 1;
push @comments, "# $key: $s";
unless (@$o) {
- my %o = %$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