From 5c9d2ef617ccb199633e1388bd19fc208bc77159 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 2 Dec 2015 23:17:44 -0800 Subject: [PATCH] fix dragging a ticket to yourself, RT#34237 --- httemplate/misc/xmlhttp-ticket-update.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httemplate/misc/xmlhttp-ticket-update.html b/httemplate/misc/xmlhttp-ticket-update.html index ed54f3125..46ed5bbad 100644 --- a/httemplate/misc/xmlhttp-ticket-update.html +++ b/httemplate/misc/xmlhttp-ticket-update.html @@ -23,7 +23,7 @@ if ( $ticket ) { 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; + $srv = 1 if ! $srv && $smsg =~ /already the current value/i; my $ddate; unless ( ! $srv ) { -- 2.11.0