diff options
author | ivan <ivan> | 2004-11-11 12:13:50 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-11-11 12:13:50 +0000 |
commit | b8cfd0780aa40bb07f3215bf9cb58011f5e32a35 (patch) | |
tree | 5b5deb6f64cf6eb9f4630675725b59e7bfad137a /rt/html/REST/1.0/Forms/ticket/default | |
parent | 0a2e57727e8f00fdc8ec4596619fb206c95fa919 (diff) | |
parent | c582e92888b4a5553e1b4e5214cf35217e4a0cf0 (diff) |
This commit was generated by cvs2svn to compensate for changes in r3874,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'rt/html/REST/1.0/Forms/ticket/default')
-rw-r--r-- | rt/html/REST/1.0/Forms/ticket/default | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rt/html/REST/1.0/Forms/ticket/default b/rt/html/REST/1.0/Forms/ticket/default index fec499b58..1b3142b86 100644 --- a/rt/html/REST/1.0/Forms/ticket/default +++ b/rt/html/REST/1.0/Forms/ticket/default @@ -177,8 +177,8 @@ else { $key = $simple{$key}; $set = "Set$key"; - next if $val eq $ticket->$key; - ($n, $s) = $ticket->$set($val); + next if (($val eq $ticket->$key)|| ($ticket->$key =~ /^\d+$/ && $val == $ticket->$key)); + ($n, $s) = $ticket->$set("$val"); } elsif (exists $dates{$key}) { $key = $dates{$key}; @@ -226,7 +226,7 @@ else { $s =~ s/^# //; } } - elsif ($key ne 'id' && $key ne 'type') { + elsif ($key ne 'id' && $key ne 'type' && $key ne 'creator') { $n = 0; $s = "Unknown field."; } |