X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fxmlhttp-ticket-update.html;h=bd58b95c69c84d22699cc955d9fc89485631a32c;hb=d256989a19dd100823d35a11929edb1ae07d9883;hp=147fbef166750ec2b26b718af2404b4c65f007dc;hpb=2b2dd969f3c18751afc583ad1e836ab8e6f73b5d;p=freeside.git diff --git a/httemplate/misc/xmlhttp-ticket-update.html b/httemplate/misc/xmlhttp-ticket-update.html index 147fbef16..bd58b95c6 100644 --- a/httemplate/misc/xmlhttp-ticket-update.html +++ b/httemplate/misc/xmlhttp-ticket-update.html @@ -16,13 +16,14 @@ my $return; if ( $ticket ) { my($orv, $omsg) = $ticket->SetOwner( $username, 'Steal' ); - $orv = 1 if ! $orv && $omsg =~ /already owns/i; + $orv = 1 if ! $orv && $omsg =~ /already own/i; if ( $orv ) { my $date = RT::Date->new( $session{CurrentUser} ); $date->Set( Format=>'unix', Value=>$starts, ); my($srv, $smsg) = $ticket->SetStarts( $date->ISO ); + $srv = 1 if ! $srv && $smsg =~ /already the current value/i; my $ddate; unless ( ! $srv ) { @@ -49,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 };