Przeglądaj źródła

Fix assign ticket error

Alan Lam 4 lat temu
rodzic
commit
47c173558b
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
 		}
 	}