diff options
author | Mark Wells <mark@freeside.biz> | 2014-04-11 08:20:26 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-04-11 08:20:26 -0700 |
commit | bd4e387da29dc3dad44605572d531ab4f7ab4f4d (patch) | |
tree | d525922bcc96cc046bc0c7ef43a46ff43344e188 /rt/lib | |
parent | 4e95cbcc7a876017487f098a06b957e79c0acf77 (diff) |
fix accidental resetting of TimeWorked value, #28459
Diffstat (limited to 'rt/lib')
-rw-r--r-- | rt/lib/RT/Interface/Web_Vendor.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rt/lib/RT/Interface/Web_Vendor.pm b/rt/lib/RT/Interface/Web_Vendor.pm index 245df1259..c9bff6f36 100644 --- a/rt/lib/RT/Interface/Web_Vendor.pm +++ b/rt/lib/RT/Interface/Web_Vendor.pm @@ -288,8 +288,10 @@ sub ProcessTicketBasics { # fields to empty strings, but internally change the values # to zero. This is sloppy and causes some problems. foreach my $field (qw(TimeWorked TimeEstimated TimeLeft)) { - $ARGSRef->{$field} =~ s/\s//g; - $ARGSRef->{$field} ||= 0; + if (exists $ARGSRef->{$field}) { + $ARGSRef->{$field} =~ s/\s//g; + $ARGSRef->{$field} ||= 0; + } } my @results = UpdateRecordObject( |