Browse Source

Fix assign ticket error

Alan Lam 4 years ago
parent
commit
47c173558b
1 changed files with 1 additions and 1 deletions
  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);
 		}
 	}