summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-03-31 18:10:41 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-03-31 18:10:41 -0500
commitafaeb8d17e05caf0a596fb5385059bc5040f7fbd (patch)
tree5e26ecffd199fc8f37cae640cb53c1589e6c615b /httemplate/misc
parent59867e99e8020b3b8ab1844c9e2e7de24d45e6cf (diff)
RT#34237: installer scheduling [SetOwner not necessarily a Steal]
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/xmlhttp-ticket-update.html6
1 files 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 ) {