fix dragging a ticket to yourself, RT#34237
authorIvan Kohler <ivan@freeside.biz>
Thu, 3 Dec 2015 07:17:44 +0000 (23:17 -0800)
committerIvan Kohler <ivan@freeside.biz>
Thu, 3 Dec 2015 07:17:44 +0000 (23:17 -0800)
httemplate/misc/xmlhttp-ticket-update.html

index ed54f31..46ed5bb 100644 (file)
@@ -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 ) {