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=e81e353c551da3a8a2727f182012fc6f9cf64ec9;hb=afaeb8d17e05caf0a596fb5385059bc5040f7fbd;hp=bd58b95c69c84d22699cc955d9fc89485631a32c;hpb=59867e99e8020b3b8ab1844c9e2e7de24d45e6cf;p=freeside.git diff --git a/httemplate/misc/xmlhttp-ticket-update.html b/httemplate/misc/xmlhttp-ticket-update.html index bd58b95c6..e81e353c5 100644 --- a/httemplate/misc/xmlhttp-ticket-update.html +++ b/httemplate/misc/xmlhttp-ticket-update.html @@ -8,14 +8,12 @@ my $username = $cgi->param('username'); my $ticket = FS::TicketSystem->get_ticket_object( \%session, ticket_id=>$id ); -#hmm, this should happen in a single transaction and either commit or rollback, -# but in reality failures "Don't Happen" so its not like a ticket gets -# half changed +#hmm, this should happen in a single transaction and either commit or rollback my $return; if ( $ticket ) { - my($orv, $omsg) = $ticket->SetOwner( $username, 'Steal' ); + my($orv, $omsg) = $ticket->SetOwner( $username ); $orv = 1 if ! $orv && $omsg =~ /already own/i; if ( $orv ) {