diff options
Diffstat (limited to 'rt/html/REST/1.0')
-rw-r--r-- | rt/html/REST/1.0/Forms/ticket/default | 6 | ||||
-rw-r--r-- | rt/html/REST/1.0/NoAuth/mail-gateway | 2 |
2 files changed, 4 insertions, 4 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."; } diff --git a/rt/html/REST/1.0/NoAuth/mail-gateway b/rt/html/REST/1.0/NoAuth/mail-gateway index 359331f58..ca8cf5155 100644 --- a/rt/html/REST/1.0/NoAuth/mail-gateway +++ b/rt/html/REST/1.0/NoAuth/mail-gateway @@ -35,7 +35,7 @@ my ( $status, $error, $Ticket ) = RT::Interface::Email::Gateway(\%ARGS); inherit => undef # inhibit UTF8 conversion done in /autohandler </%flags> % if ($status == -75 ) { -temporary failure +temporary failure - <% $error %> % } % elsif ($status == 1) { ok |