From e0f4fd43049197e071193762d92f5db9462fe7e4 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 31 Mar 2016 18:10:41 -0500 Subject: [PATCH] RT#34237: installer scheduling [SetOwner not necessarily a Steal] --- httemplate/misc/xmlhttp-ticket-update.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ) { -- 2.11.0