Explorar el Código

Fix assign ticket error

Alan Lam hace 4 años
padre
commit
47c173558b
Se han modificado 1 ficheros con 1 adiciones y 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);
 		}
 	}