Browse Source

Fix assign ticket error

Alan Lam 4 năm trước cách đây
mục cha
commit
47c173558b
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  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);
 		}
 	}