[freeside-commits] branch FREESIDE_4_BRANCH updated. 7950e3a110063a1c0ae0586dcecd2d7e7d880192
Ivan
ivan at 420.am
Wed Dec 2 23:17:19 PST 2015
The branch, FREESIDE_4_BRANCH has been updated
via 7950e3a110063a1c0ae0586dcecd2d7e7d880192 (commit)
from 433aa73273e3dc1efe040824fa6173e8c47b4889 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7950e3a110063a1c0ae0586dcecd2d7e7d880192
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Dec 2 23:17:19 2015 -0800
fix dragging a ticket to yourself, RT#34237
diff --git a/httemplate/misc/xmlhttp-ticket-update.html b/httemplate/misc/xmlhttp-ticket-update.html
index 147fbef..ed54f31 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 ) {
-----------------------------------------------------------------------
Summary of changes:
httemplate/misc/xmlhttp-ticket-update.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list