projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT#34237: installer scheduling [SetOwner not necessarily a Steal]
[freeside.git]
/
httemplate
/
misc
/
xmlhttp-ticket-update.html
diff --git
a/httemplate/misc/xmlhttp-ticket-update.html
b/httemplate/misc/xmlhttp-ticket-update.html
index
bd58b95
..
e81e353
100644
(file)
--- 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 );
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 $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 ) {
$orv = 1 if ! $orv && $omsg =~ /already own/i;
if ( $orv ) {