From bd4e387da29dc3dad44605572d531ab4f7ab4f4d Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Fri, 11 Apr 2014 08:20:26 -0700 Subject: [PATCH] fix accidental resetting of TimeWorked value, #28459 --- rt/lib/RT/Interface/Web_Vendor.pm | 6 ++++-- 1 file 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( -- 2.11.0