Explorar o código

Fix assign ticket error

Alan Lam %!s(int64=4) %!d(string=hai) anos
pai
achega
47c173558b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/ticket.php

+ 1 - 1
controllers/ticket.php

@@ -37,7 +37,7 @@ if($ticket_submit) {
 	}
 
 	if($assign_to_user) {
-		if(!$assign_to_user->is($ticket->assigned_user_id)) {
+		if((int) $ticket->assigned_user_id !== (int) $assign_to_user->id) {
 			$ticket->assign($assign_to_user);
 		}
 	}