projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3079abe
)
fix dragging a ticket to yourself, RT#34237
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 3 Dec 2015 07:17:17 +0000
(23:17 -0800)
committer
Jonathan Prykop
<jonathan@freeside.biz>
Wed, 3 Feb 2016 23:46:53 +0000
(17:46 -0600)
httemplate/misc/xmlhttp-ticket-update.html
patch
|
blob
|
history
diff --git
a/httemplate/misc/xmlhttp-ticket-update.html
b/httemplate/misc/xmlhttp-ticket-update.html
index
147fbef
..
ed54f31
100644
(file)
--- 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 own
s
/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 ) {