fix-popup+graph

This commit is contained in:
arindam85
2016-10-24 13:30:03 +05:30
parent df888294ff
commit 252c72cf2d
3 changed files with 34 additions and 7 deletions

View File

@@ -465,7 +465,7 @@ class UserController extends Controller
$ticket = Tickets::where('assigned_to', '=', $id)->where('status', '=', '1')->get();
if ($assign_to[0] == 'user') {
if ($users->id == $assign_to[1]) {
return redirect('user')->with('warning', Lang::get('lang.select_another_user'));
return redirect('user')->with('warning', Lang::get('lang.select_another_agent'));
}
$user_detail = User::where('id', '=', $assign_to[1])->first();
$assignee = $user_detail->first_name.' '.$user_detail->last_name;
@@ -491,7 +491,7 @@ class UserController extends Controller
$user = User::find($id);
$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)) {
DB::table('user_assign_organization')->where('user_id', '=', $id)->delete();