updates for Arindam's bug fix commit

This commit is contained in:
Manish Verma
2016-10-24 16:59:09 +05:30
parent f5a8430906
commit 002cbaa8d8
2 changed files with 2 additions and 2 deletions

View File

@@ -491,7 +491,7 @@ class UserController extends Controller
$user = User::find($id); $user = User::find($id);
$user->delete(); $user->delete();
return redirect('user')->with('success', Lang::get('lang.agent_delete_successfully_and_ticket_assign_to_another_user')); return redirect('user')->with('success', Lang::get('lang.agent_delete_successfully_and_ticket_assign_to_another_agent'));
} }
if (User_org::where('user_id', '=', $id)) { if (User_org::where('user_id', '=', $id)) {
DB::table('user_assign_organization')->where('user_id', '=', $id)->delete(); DB::table('user_assign_organization')->where('user_id', '=', $id)->delete();

View File

@@ -1528,6 +1528,6 @@ return [
'user_delete_successfully' => 'User deleted successfully', 'user_delete_successfully' => 'User deleted successfully',
'agent_delete_successfully' => 'Agent deleted successfully', 'agent_delete_successfully' => 'Agent deleted successfully',
'select_another_agent' => 'Select another agent', 'select_another_agent' => 'Select another agent',
'agent_delete_successfully_and_ticket_assign_to_another_agent' => 'Agent delete successfully and ticket assign to another agent', 'agent_delete_successfully_and_ticket_assign_to_another_agent' => 'Agent deleted successfully and ticket assigned to another agent',
]; ];