summaryrefslogtreecommitdiff
path: root/httemplate/misc/xmlhttp-ticket-update.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-12-02 23:17:19 -0800
committerIvan Kohler <ivan@freeside.biz>2015-12-02 23:17:19 -0800
commit7950e3a110063a1c0ae0586dcecd2d7e7d880192 (patch)
treef5e493382d51312bb53f0638d0bec8461097f363 /httemplate/misc/xmlhttp-ticket-update.html
parent433aa73273e3dc1efe040824fa6173e8c47b4889 (diff)
fix dragging a ticket to yourself, RT#34237
Diffstat (limited to 'httemplate/misc/xmlhttp-ticket-update.html')
-rw-r--r--httemplate/misc/xmlhttp-ticket-update.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/misc/xmlhttp-ticket-update.html b/httemplate/misc/xmlhttp-ticket-update.html
index 147fbef16..ed54f3125 100644
--- a/httemplate/misc/xmlhttp-ticket-update.html
+++ b/httemplate/misc/xmlhttp-ticket-update.html
@@ -16,13 +16,14 @@ my $return;
if ( $ticket ) {
my($orv, $omsg) = $ticket->SetOwner( $username, 'Steal' );
- $orv = 1 if ! $orv && $omsg =~ /already owns/i;
+ $orv = 1 if ! $orv && $omsg =~ /already own/i;
if ( $orv ) {
my $date = RT::Date->new( $session{CurrentUser} );
$date->Set( Format=>'unix', Value=>$starts, );
my($srv, $smsg) = $ticket->SetStarts( $date->ISO );
+ $srv = 1 if ! $srv && /already the current value/i;
my $ddate;
unless ( ! $srv ) {