X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fxmlhttp-ticket-update.html;fp=httemplate%2Fmisc%2Fxmlhttp-ticket-update.html;h=ed54f312534eacd8cb02acee188ac10229a1adff;hb=22a07e7a06ec8eb8e11813fcbad8e2eb8b1c0c30;hp=147fbef166750ec2b26b718af2404b4c65f007dc;hpb=e87e90e19f837f9d276b6b57e734a08c4eb335f3;p=freeside.git diff --git a/httemplate/misc/xmlhttp-ticket-update.html b/httemplate/misc/xmlhttp-ticket-update.html index 147fbef16..ed54f3125 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 && /already the current value/i; my $ddate; unless ( ! $srv ) {