X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fxmlhttp-ticket-update.html;h=bd58b95c69c84d22699cc955d9fc89485631a32c;hb=d256989a19dd100823d35a11929edb1ae07d9883;hp=ed54f312534eacd8cb02acee188ac10229a1adff;hpb=22a07e7a06ec8eb8e11813fcbad8e2eb8b1c0c30;p=freeside.git diff --git a/httemplate/misc/xmlhttp-ticket-update.html b/httemplate/misc/xmlhttp-ticket-update.html index ed54f3125..bd58b95c6 100644 --- a/httemplate/misc/xmlhttp-ticket-update.html +++ b/httemplate/misc/xmlhttp-ticket-update.html @@ -23,7 +23,7 @@ if ( $ticket ) { my $date = RT::Date->new( $session{CurrentUser} ); $date->Set( Format=>'unix', Value=>$starts, ); my($srv, $smsg) = $ticket->SetStarts( $date->ISO ); - $srv = 1 if ! $srv && /already the current value/i; + $srv = 1 if ! $srv && $smsg =~ /already the current value/i; my $ddate; unless ( ! $srv ) { @@ -50,7 +50,7 @@ if ( $ticket ) { 'sched_label' => FS::sched_avail::pretty_time($sh*60+$sm). '-'. FS::sched_avail::pretty_time($eh*60+$em). ': '. - $cust_main[0]->_FreesideURILabel, + encode_entities($cust_main[0]->_FreesideURILabel), }; } else { $return = { 'error' => $smsg };