RT#34237: installer scheduling [SetOwner not necessarily a Steal]
authorJonathan Prykop <jonathan@freeside.biz>
Thu, 31 Mar 2016 23:10:41 +0000 (18:10 -0500)
committerJonathan Prykop <jonathan@freeside.biz>
Tue, 5 Apr 2016 08:22:44 +0000 (03:22 -0500)
httemplate/misc/xmlhttp-ticket-update.html

index bd58b95..e81e353 100644 (file)
@@ -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 ) {