From 77c88cc2294216df4d9b1a664845208eb14467f1 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Mon, 19 Dec 2016 15:47:17 +0530 Subject: [PATCH 01/41] bug-fix-patch # Counting only authenticated user's notification # Agents were not able to select canned resposne while replying --- .../Common/NotificationController.php | 2 +- .../agent/helpdesk/ticket/timeline.blade.php | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Common/NotificationController.php b/app/Http/Controllers/Common/NotificationController.php index 1ab7058b1..2507c2f7f 100644 --- a/app/Http/Controllers/Common/NotificationController.php +++ b/app/Http/Controllers/Common/NotificationController.php @@ -164,7 +164,7 @@ class NotificationController extends Controller }, 'notification.model' => function ($query) { $query->select('id', 'ticket_number'); }, - ]); + ])->where('id', '=', \Auth::user()->id); return $notifications; } diff --git a/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php b/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php index a9a0ab028..3a9d33bc6 100644 --- a/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php @@ -397,14 +397,14 @@ if ($thread->title != "") {
- id)->get(); ?> @foreach($canneds as $canned) - + @endforeach {{-- --}} @@ -2210,5 +2210,20 @@ echo $ticket_data->title; $(this).html($('').width(Math.max(0, (Math.min(5, parseFloat($(this).html())))) * 16)); }); } + + function addCannedResponse() { + var selectedResponse = document.getElementById( "select" ); + var response = selectedResponse.options[selectedResponse.selectedIndex ].value; + if (response == 'zzz') { + for ( instance in CKEDITOR.instances ){ + CKEDITOR.instances[instance].updateElement(); + CKEDITOR.instances[instance].setData(''); + } + } else { + for ( instance in CKEDITOR.instances ) { + CKEDITOR.instances[instance].insertHtml(response); + } + } + } @stop \ No newline at end of file From 54af5c3765f8992f7a8e35acd19bbb6b3e5e738d Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Mon, 19 Dec 2016 17:22:21 +0530 Subject: [PATCH 02/41] Bug-fix-patch2 # correct while registration --- app/Http/Controllers/Auth/AuthController.php | 14 ++++++++++---- resources/lang/de/lang.php | 3 +++ resources/lang/en/lang.php | 3 +++ resources/lang/fr/lang.php | 3 +++ resources/lang/it/lang.php | 3 +++ resources/lang/nl/lang.php | 3 +++ resources/lang/pt/lang.php | 3 +++ resources/lang/ru/lang.php | 3 +++ 8 files changed, 31 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Auth/AuthController.php b/app/Http/Controllers/Auth/AuthController.php index 971ebc449..7692962c2 100644 --- a/app/Http/Controllers/Auth/AuthController.php +++ b/app/Http/Controllers/Auth/AuthController.php @@ -183,9 +183,11 @@ class AuthController extends Controller $message12 = ''; $settings = CommonSettings::select('status')->where('option_name', '=', 'send_otp')->first(); $sms = Plugin::select('status')->where('name', '=', 'SMS')->first(); - // Event for login - \Event::fire(new \App\Events\LoginEvent($request)); - $var = $this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $name, 'email' => $request->input('email')], $message = ['subject' => null, 'scenario' => 'registration'], $template_variables = ['user' => $name, 'email_address' => $request->input('email'), 'password_reset_link' => url('account/activate/'.$code)]); + // Event for login + \Event::fire(new \App\Events\LoginEvent($request)); + if ($request->input('email') !== '') { + $var = $this->PhpMailController->sendmail($from = $this->PhpMailController->mailfrom('1', '0'), $to = ['name' => $name, 'email' => $request->input('email')], $message = ['subject' => null, 'scenario' => 'registration'], $template_variables = ['user' => $name, 'email_address' => $request->input('email'), 'password_reset_link' => url('account/activate/'.$code)]); + } if ($settings->status == 1 || $settings->status == '1') { if (count($sms) > 0) { if ($sms->status == 1 || $sms->status == '1') { @@ -194,7 +196,11 @@ class AuthController extends Controller $message12 = Lang::get('lang.activate_your_account_click_on_Link_that_send_to_your_mail_sms_plugin_inactive_or_not_setup'); } } else { - $message12 = Lang::get('lang.activate_your_account_click_on_Link_that_send_to_your_mail'); + if ($request->input('email') !== '') { + $message12 = Lang::get('lang.activate_your_account_click_on_Link_that_send_to_your_mail'); + } else { + $message12 = Lang::get('lang.account-created-contact-admin-as-we-were-not-able-to-send-opt'); + } } } else { $message12 = Lang::get('lang.activate_your_account_click_on_Link_that_send_to_your_mail'); diff --git a/resources/lang/de/lang.php b/resources/lang/de/lang.php index e2d90f32e..751d75ae6 100644 --- a/resources/lang/de/lang.php +++ b/resources/lang/de/lang.php @@ -1146,4 +1146,7 @@ return [ 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', + //update 18-12-2016 + 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', + ]; diff --git a/resources/lang/en/lang.php b/resources/lang/en/lang.php index d96b13e49..4eb8f0b87 100644 --- a/resources/lang/en/lang.php +++ b/resources/lang/en/lang.php @@ -1583,4 +1583,7 @@ return [ 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', + //update 18-12-2016 + 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', + ]; diff --git a/resources/lang/fr/lang.php b/resources/lang/fr/lang.php index 2df9999b9..dfe4b5106 100644 --- a/resources/lang/fr/lang.php +++ b/resources/lang/fr/lang.php @@ -1554,4 +1554,7 @@ return [ 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', + //update 18-12-2016 + 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', + ]; diff --git a/resources/lang/it/lang.php b/resources/lang/it/lang.php index 40bb8faaf..b629f2bd1 100644 --- a/resources/lang/it/lang.php +++ b/resources/lang/it/lang.php @@ -1105,4 +1105,7 @@ return [ 'restore-user' => 'Restore user account', 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', + + //update 18-12-2016 + 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', ]; diff --git a/resources/lang/nl/lang.php b/resources/lang/nl/lang.php index 34c6e13ce..8bb0b35c7 100644 --- a/resources/lang/nl/lang.php +++ b/resources/lang/nl/lang.php @@ -1599,4 +1599,7 @@ return [ 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', + //update 18-12-2016 + 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', + ]; diff --git a/resources/lang/pt/lang.php b/resources/lang/pt/lang.php index fed5c3db7..116d1ec49 100644 --- a/resources/lang/pt/lang.php +++ b/resources/lang/pt/lang.php @@ -1544,4 +1544,7 @@ return [ 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', + //update 18-12-2016 + 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', + ]; diff --git a/resources/lang/ru/lang.php b/resources/lang/ru/lang.php index df3ffe5c0..3bf31ee42 100644 --- a/resources/lang/ru/lang.php +++ b/resources/lang/ru/lang.php @@ -1052,4 +1052,7 @@ return [ 'restore-user' => 'Restore user account', 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', + + //update 18-12-2016 + 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', ]; From 964ca87b89a8fdac1f608d2ea6fc1b43aa083b1c Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Mon, 19 Dec 2016 12:49:19 +0000 Subject: [PATCH 03/41] Apply fixes from StyleCI --- app/Http/ViewComposers/AgentLayout.php | 4 ++-- resources/lang/de/lang.php | 2 +- resources/lang/en/lang.php | 2 +- resources/lang/fr/lang.php | 2 +- resources/lang/it/lang.php | 2 +- resources/lang/nl/lang.php | 2 +- resources/lang/pt/lang.php | 2 +- resources/lang/ru/lang.php | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/Http/ViewComposers/AgentLayout.php b/app/Http/ViewComposers/AgentLayout.php index df04bf23d..1fdef6059 100644 --- a/app/Http/ViewComposers/AgentLayout.php +++ b/app/Http/ViewComposers/AgentLayout.php @@ -150,9 +150,9 @@ class AgentLayout } return $table->Join('ticket_status', function ($join) { - $join->on('ticket_status.id', '=', 'tickets.status') + $join->on('ticket_status.id', '=', 'tickets.status') ->whereIn('ticket_status.id', [1, 7]); - }); + }); } public function overdues() diff --git a/resources/lang/de/lang.php b/resources/lang/de/lang.php index 751d75ae6..4a04a3b01 100644 --- a/resources/lang/de/lang.php +++ b/resources/lang/de/lang.php @@ -1146,7 +1146,7 @@ return [ 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', - //update 18-12-2016 + //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', ]; diff --git a/resources/lang/en/lang.php b/resources/lang/en/lang.php index 4eb8f0b87..0869be465 100644 --- a/resources/lang/en/lang.php +++ b/resources/lang/en/lang.php @@ -1583,7 +1583,7 @@ return [ 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', - //update 18-12-2016 + //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', ]; diff --git a/resources/lang/fr/lang.php b/resources/lang/fr/lang.php index dfe4b5106..66b28872c 100644 --- a/resources/lang/fr/lang.php +++ b/resources/lang/fr/lang.php @@ -1554,7 +1554,7 @@ return [ 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', - //update 18-12-2016 + //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', ]; diff --git a/resources/lang/it/lang.php b/resources/lang/it/lang.php index b629f2bd1..c9cc32aa8 100644 --- a/resources/lang/it/lang.php +++ b/resources/lang/it/lang.php @@ -1106,6 +1106,6 @@ return [ 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', - //update 18-12-2016 + //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', ]; diff --git a/resources/lang/nl/lang.php b/resources/lang/nl/lang.php index 8bb0b35c7..95bdb72a5 100644 --- a/resources/lang/nl/lang.php +++ b/resources/lang/nl/lang.php @@ -1599,7 +1599,7 @@ return [ 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', - //update 18-12-2016 + //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', ]; diff --git a/resources/lang/pt/lang.php b/resources/lang/pt/lang.php index 116d1ec49..4db1a1d87 100644 --- a/resources/lang/pt/lang.php +++ b/resources/lang/pt/lang.php @@ -1544,7 +1544,7 @@ return [ 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', - //update 18-12-2016 + //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', ]; diff --git a/resources/lang/ru/lang.php b/resources/lang/ru/lang.php index 3bf31ee42..5f06a8d0d 100644 --- a/resources/lang/ru/lang.php +++ b/resources/lang/ru/lang.php @@ -1053,6 +1053,6 @@ return [ 'delete-account-caution-info' => 'Please note this account may still have open tickets in the system.', 'reply-can-not-be-empty' => 'Reply can not be blank. Please enter your reply.', - //update 18-12-2016 + //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', ]; From 1f8cda387592b0bce98e6b038a977757a2fe0f58 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Tue, 20 Dec 2016 10:58:11 +0530 Subject: [PATCH 04/41] Bug-fix-patch3 Fixed issue #350 - Removed labels from ticket settings menu --- resources/views/themes/default1/admin/layout/admin.blade.php | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/views/themes/default1/admin/layout/admin.blade.php b/resources/views/themes/default1/admin/layout/admin.blade.php index 6715f0df6..02abdfc5a 100644 --- a/resources/views/themes/default1/admin/layout/admin.blade.php +++ b/resources/views/themes/default1/admin/layout/admin.blade.php @@ -278,7 +278,6 @@
  • {!! Lang::get('lang.auto_response') !!}
  • {!! Lang::get('lang.alert_notices') !!}
  • {!! Lang::get('lang.status') !!}
  • -
  • {!! Lang::get('lang.labels') !!}
  • {!! Lang::get('lang.ratings') !!}
  • {!! Lang::get('lang.close-workflow') !!}
  • From 78f6a13528b40a484752c0e0c31308405b55d9c0 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Tue, 20 Dec 2016 19:33:23 +0530 Subject: [PATCH 05/41] Bug-fix-patch4 # handling exception in while adding language # Implemented Yajra in users list table # custom filter and veiw option in users list table --- .../Admin/helpdesk/LanguageController.php | 129 +++++++++--------- .../Agent/helpdesk/UserController.php | 56 ++++---- resources/lang/de/lang.php | 7 + resources/lang/en/lang.php | 8 +- resources/lang/fr/lang.php | 7 + resources/lang/it/lang.php | 7 + resources/lang/nl/lang.php | 7 + resources/lang/pt/lang.php | 8 ++ resources/lang/ru/lang.php | 8 ++ .../agent/helpdesk/user/index.blade.php | 24 +++- .../vendor/Chumper/user-javascript.blade.php | 57 +++++++- 11 files changed, 220 insertions(+), 98 deletions(-) diff --git a/app/Http/Controllers/Admin/helpdesk/LanguageController.php b/app/Http/Controllers/Admin/helpdesk/LanguageController.php index 8eb174a22..91802568c 100644 --- a/app/Http/Controllers/Admin/helpdesk/LanguageController.php +++ b/app/Http/Controllers/Admin/helpdesk/LanguageController.php @@ -122,79 +122,84 @@ class LanguageController extends Controller */ public function postForm() { - // getting all of the post data - $file = [ - 'File' => Input::file('File'), - 'language-name' => Input::input('language-name'), - 'iso-code' => Input::input('iso-code'), - ]; + try { + // getting all of the post data + $file = [ + 'File' => Input::file('File'), + 'language-name' => Input::input('language-name'), + 'iso-code' => Input::input('iso-code'), + ]; - // setting up rules - $rules = [ - 'File' => 'required|mimes:zip|max:30000', - 'language-name' => 'required', - 'iso-code' => 'required|max:2', - ]; // and for max size - // doing the validation, passing post data, rules and the messages - $validator = Validator::make($file, $rules); - if ($validator->fails()) { + // setting up rules + $rules = [ + 'File' => 'required|mimes:zip|max:30000', + 'language-name' => 'required', + 'iso-code' => 'required|max:2', + ]; // and for max size + // doing the validation, passing post data, rules and the messages + $validator = Validator::make($file, $rules); + if ($validator->fails()) { - // send back to the page with the input data and errors - return Redirect::back()->withInput()->withErrors($validator); - } else { - - //Checking if package already exists or not in lang folder - $path = base_path('resources/lang'); - if (in_array(strtolower(Input::get('iso-code')), scandir($path))) { - - //sending back with error message - Session::flash('fails', Lang::get('lang.package_exist')); - Session::flash('link', 'change-language/'.strtolower(Input::get('iso-code'))); - - return Redirect::back()->withInput(); - } elseif (!array_key_exists(strtolower(Input::get('iso-code')), Config::get('languages'))) {//Checking Valid ISO code form Languages.php - //sending back with error message - Session::flash('fails', Lang::get('lang.iso-code-error')); - - return Redirect::back()->withInput(); + // send back to the page with the input data and errors + return Redirect::back()->withInput()->withErrors($validator); } else { - // checking file is valid. - if (Input::file('File')->isValid()) { - $name = Input::file('File')->getClientOriginalName(); //uploaded file's original name - $destinationPath = base_path('public/uploads/'); // defining uploading path - $extractpath = base_path('resources/lang').'/'.strtolower(Input::get('iso-code')); //defining extracting path - mkdir($extractpath); //creating directroy for extracting uploadd file - //mkdir($destinationPath); - Input::file('File')->move($destinationPath, $name); // uploading file to given path - \Zipper::make($destinationPath.'/'.$name)->extractTo($extractpath); //extracting file to give path - //check if Zip extract foldercontains any subfolder - $directories = File::directories($extractpath); - //$directories = glob($extractpath. '/*' , GLOB_ONLYDIR); - if (!empty($directories)) { //if extract folder contains subfolder - $success = File::deleteDirectory($extractpath); //remove extracted folder and it's subfolder from lang - //$success2 = File::delete($destinationPath.'/'.$name); - if ($success) { - //sending back with error message - Session::flash('fails', Lang::get('lang.zipp-error')); - Session::flash('link2', 'http://www.ladybirdweb.com/support/show/how-to-translate-faveo-into-multiple-languages'); + //Checking if package already exists or not in lang folder + $path = base_path('resources/lang'); + if (in_array(strtolower(Input::get('iso-code')), scandir($path))) { - return Redirect::back()->withInput(); + //sending back with error message + Session::flash('fails', Lang::get('lang.package_exist')); + Session::flash('link', 'change-language/'.strtolower(Input::get('iso-code'))); + + return Redirect::back()->withInput(); + } elseif (!array_key_exists(strtolower(Input::get('iso-code')), Config::get('languages'))) {//Checking Valid ISO code form Languages.php + //sending back with error message + Session::flash('fails', Lang::get('lang.iso-code-error')); + + return Redirect::back()->withInput(); + } else { + + // checking file is valid. + if (Input::file('File')->isValid()) { + $name = Input::file('File')->getClientOriginalName(); //uploaded file's original name + $destinationPath = base_path('public/uploads/'); // defining uploading path + $extractpath = base_path('resources/lang').'/'.strtolower(Input::get('iso-code')); //defining extracting path + mkdir($extractpath); //creating directroy for extracting uploadd file + //mkdir($destinationPath); + Input::file('File')->move($destinationPath, $name); // uploading file to given path + \Zipper::make($destinationPath.'/'.$name)->extractTo($extractpath); //extracting file to give path + //check if Zip extract foldercontains any subfolder + $directories = File::directories($extractpath); + //$directories = glob($extractpath. '/*' , GLOB_ONLYDIR); + if (!empty($directories)) { //if extract folder contains subfolder + $success = File::deleteDirectory($extractpath); //remove extracted folder and it's subfolder from lang + //$success2 = File::delete($destinationPath.'/'.$name); + if ($success) { + //sending back with error message + Session::flash('fails', Lang::get('lang.zipp-error')); + Session::flash('link2', 'http://www.ladybirdweb.com/support/show/how-to-translate-faveo-into-multiple-languages'); + + return Redirect::back()->withInput(); + } + } else { + // sending back with success message + Session::flash('success', Lang::get('lang.upload-success')); + Session::flash('link', 'change-language/'.strtolower(Input::get('iso-code'))); + + return Redirect::route('LanguageController'); } } else { - // sending back with success message - Session::flash('success', Lang::get('lang.upload-success')); - Session::flash('link', 'change-language/'.strtolower(Input::get('iso-code'))); + // sending back with error message. + Session::flash('fails', Lang::get('lang.file-error')); - return Redirect::route('LanguageController'); + return Redirect::route('form'); } - } else { - // sending back with error message. - Session::flash('fails', Lang::get('lang.file-error')); - - return Redirect::route('form'); } } + } catch (\Exception $e) { + Session::flash('fails', $e->getMessage()); + Redirect::back()->withInput(); } } diff --git a/app/Http/Controllers/Agent/helpdesk/UserController.php b/app/Http/Controllers/Agent/helpdesk/UserController.php index 9ba440655..8dd0b7715 100644 --- a/app/Http/Controllers/Agent/helpdesk/UserController.php +++ b/app/Http/Controllers/Agent/helpdesk/UserController.php @@ -41,6 +41,7 @@ use Illuminate\Http\Request; use Input; use Lang; use Redirect; +use Datatables; /** * UserController @@ -85,7 +86,6 @@ class UserController extends Controller Lang::get('lang.email'), Lang::get('lang.phone'), Lang::get('lang.status'), - Lang::get('lang.ban'), Lang::get('lang.last_login'), Lang::get('lang.role'), Lang::get('lang.action')) // these are the column headings to be shown @@ -116,21 +116,42 @@ class UserController extends Controller public function user_list(Request $request) { $type = $request->input('profiletype'); + $search = $request->input('searchTerm'); - if ($type == 'active') { - $users = User::where('role', '!=', 'admin')->where('is_delete', '=', 0)->get(); + if ($type === 'agents') { + $users = User::where('role', '=', 'agent')->where('is_delete', '=', 0); + } elseif ($type === 'users') { + $users = User::where('role', '=', 'user')->where('is_delete', '=', 0); + } elseif ($type === 'active') { + $users = User::where('role', '!=', 'admin')->where('active', '=', 1); + } elseif ($type === 'inactive') { + $users = User::where('role', '!=', 'admin')->where('active', '=', 0); + } elseif ($type === 'deleted') { + $users = User::where('role', '!=', 'admin')->where('is_delete', '=', 1); + } elseif ($type === 'banned') { + $users = User::where('role', '!=', 'admin')->where('ban', '=', 1); } else { - $users = User::where('role', '!=', 'admin')->where('is_delete', '=', 1)->get(); + $users = User::where('role', '!=', 'admin')->where('is_delete', '=', 0); } + + $users = $users->select('user_name', 'email', 'mobile', 'active', 'updated_at', 'role', 'id', 'last_name', 'country_code', 'phone_number'); + if ($search !== '') { + $users = $users->where(function($query) use ($search){ + $query->where('user_name', 'LIKE', '%'.$search.'%'); + $query->orWhere('email', 'LIKE', '%'.$search.'%'); + $query->orWhere('first_name', 'LIKE', '%'.$search.'%'); + $query->orWhere('last_name', 'LIKE', '%'.$search.'%'); + $query->orWhere('mobile', 'LIKE', '%'.$search.'%'); + $query->orWhere('updated_at', 'LIKE', '%'.$search.'%'); + $query->orWhere('country_code', 'LIKE', '%'.$search.'%'); + }); + } // displaying list of users with chumper datatables // return \Datatable::collection(User::where('role', "!=", "admin")->get()) - return \Datatable::collection($users) - /* searchable column username and email */ - ->searchColumns('user_name', 'email', 'phone') - /* order column username and email */ - ->orderColumns('user_name', 'email') + return \Datatables::of($users) /* column username */ + ->removeColumn('id', 'last_name', 'country_code', 'phone_number') ->addColumn('user_name', function ($model) { if ($model->first_name) { $string = strip_tags($model->first_name.' '.$model->last_name); @@ -153,7 +174,7 @@ class UserController extends Controller return $email; }) /* column phone */ - ->addColumn('phone', function ($model) { + ->addColumn('mobile', function ($model) { $phone = ''; if ($model->phone_number) { $phone = $model->ext.' '.$model->phone_number; @@ -167,7 +188,7 @@ class UserController extends Controller return $phone; }) /* column account status */ - ->addColumn('status', function ($model) { + ->addColumn('active', function ($model) { $status = $model->active; if ($status == 1) { $stat = ''; @@ -177,19 +198,8 @@ class UserController extends Controller return $stat; }) - /* column ban status */ - ->addColumn('ban', function ($model) { - $status = $model->ban; - if ($status == 1) { - $stat = ''; - } else { - $stat = ''; - } - - return $stat; - }) /* column last login date */ - ->addColumn('lastlogin', function ($model) { + ->addColumn('updated_at', function ($model) { $t = $model->updated_at; return TicketController::usertimezone($t); diff --git a/resources/lang/de/lang.php b/resources/lang/de/lang.php index 4a04a3b01..936663210 100644 --- a/resources/lang/de/lang.php +++ b/resources/lang/de/lang.php @@ -1148,5 +1148,12 @@ return [ //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', + //update 19-12-2016 + 'only-agents' => 'Agent users', + 'only-users' => 'Clients users', + 'banned-users' => 'Banned users', + 'inactive-users' => 'Inactive users', + 'all-users' => 'All users', + 'search' => 'Search...', ]; diff --git a/resources/lang/en/lang.php b/resources/lang/en/lang.php index 0869be465..3582fa87c 100644 --- a/resources/lang/en/lang.php +++ b/resources/lang/en/lang.php @@ -1585,5 +1585,11 @@ return [ //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', - + //update 19-12-2016 + 'only-agents' => 'Agent users', + 'only-users' => 'Clients users', + 'banned-users' => 'Banned users', + 'inactive-users' => 'Inactive users', + 'all-users' => 'All users', + 'search' => 'Search...', ]; diff --git a/resources/lang/fr/lang.php b/resources/lang/fr/lang.php index 66b28872c..9cc8f4f5a 100644 --- a/resources/lang/fr/lang.php +++ b/resources/lang/fr/lang.php @@ -1556,5 +1556,12 @@ return [ //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', + //update 19-12-2016 + 'only-agents' => 'Agent users', + 'only-users' => 'Clients users', + 'banned-users' => 'Banned users', + 'inactive-users' => 'Inactive users', + 'all-users' => 'All users', + 'search' => 'Search...', ]; diff --git a/resources/lang/it/lang.php b/resources/lang/it/lang.php index c9cc32aa8..94275e16a 100644 --- a/resources/lang/it/lang.php +++ b/resources/lang/it/lang.php @@ -1108,4 +1108,11 @@ return [ //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', + //update 19-12-2016 + 'only-agents' => 'Agent users', + 'only-users' => 'Clients users', + 'banned-users' => 'Banned users', + 'inactive-users' => 'Inactive users', + 'all-users' => 'All users', + 'search' => 'Search...', ]; diff --git a/resources/lang/nl/lang.php b/resources/lang/nl/lang.php index 95bdb72a5..0f8fda029 100644 --- a/resources/lang/nl/lang.php +++ b/resources/lang/nl/lang.php @@ -1602,4 +1602,11 @@ return [ //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', + //update 19-12-2016 + 'only-agents' => 'Agent users', + 'only-users' => 'Clients users', + 'banned-users' => 'Banned users', + 'inactive-users' => 'Inactive users', + 'all-users' => 'All users', + 'search' => 'Search...', ]; diff --git a/resources/lang/pt/lang.php b/resources/lang/pt/lang.php index 4db1a1d87..0121dd46a 100644 --- a/resources/lang/pt/lang.php +++ b/resources/lang/pt/lang.php @@ -1547,4 +1547,12 @@ return [ //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', + //update 19-12-2016 + 'only-agents' => 'Agent users', + 'only-users' => 'Clients users', + 'banned-users' => 'Banned users', + 'inactive-users' => 'Inactive users', + 'all-users' => 'All users', + 'search' => 'Search...', + ]; diff --git a/resources/lang/ru/lang.php b/resources/lang/ru/lang.php index 5f06a8d0d..206d4a3b8 100644 --- a/resources/lang/ru/lang.php +++ b/resources/lang/ru/lang.php @@ -1055,4 +1055,12 @@ return [ //update 18-12-2016 'account-created-contact-admin-as-we-were-not-able-to-send-opt' => 'Your account has been created successfully. Please contact admin for account activation as we were not able to send you an OPT code.', + + //update 19-12-2016 + 'only-agents' => 'Agent users', + 'only-users' => 'Clients users', + 'banned-users' => 'Banned users', + 'inactive-users' => 'Inactive users', + 'all-users' => 'All users', + 'search' => 'Search...', ]; diff --git a/resources/views/themes/default1/agent/helpdesk/user/index.blade.php b/resources/views/themes/default1/agent/helpdesk/user/index.blade.php index 706d04845..e3d8edce5 100644 --- a/resources/views/themes/default1/agent/helpdesk/user/index.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/user/index.blade.php @@ -34,20 +34,32 @@ class="active"
    +

    {{Lang::get('lang.user')}}

    -
    +
    +
    +
    + + +
    +
    -
    +
    Export diff --git a/resources/views/vendor/Chumper/user-javascript.blade.php b/resources/views/vendor/Chumper/user-javascript.blade.php index fd79a2be8..53bfe4e41 100644 --- a/resources/views/vendor/Chumper/user-javascript.blade.php +++ b/resources/views/vendor/Chumper/user-javascript.blade.php @@ -7,8 +7,9 @@ foreach($segments as $seg){ ?> \ No newline at end of file From 92df1e0654225c4a08bee594552bfea314256dad Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Wed, 21 Dec 2016 11:43:37 +0530 Subject: [PATCH 06/41] Bug-fix-patch-5 # Removed approval link which is not a part of community version # Added storage in side bar menu # Fixed UI --- app/FaveoStorage/views/settings.blade.php | 23 +++++++++++++++---- .../default1/admin/layout/admin.blade.php | 2 +- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/app/FaveoStorage/views/settings.blade.php b/app/FaveoStorage/views/settings.blade.php index 52fb6dda4..ba5b0d5e9 100644 --- a/app/FaveoStorage/views/settings.blade.php +++ b/app/FaveoStorage/views/settings.blade.php @@ -1,9 +1,24 @@ @extends('themes.default1.admin.layout.admin') -@section('content') -
    -

    {{Lang::get('storage::lang.settings')}}

    -
    +@section('Settings') +active +@stop + +@section('settings-bar') +active +@stop + +@section('storage') +class="active" +@stop + +@section('PageHeader') +

    {{ Lang::get('storage::lang.storage')}}

    +@stop + +@section('HeadInclude') +@stop +@section('content')
    diff --git a/resources/views/themes/default1/admin/layout/admin.blade.php b/resources/views/themes/default1/admin/layout/admin.blade.php index 02abdfc5a..bf6c51e1e 100644 --- a/resources/views/themes/default1/admin/layout/admin.blade.php +++ b/resources/views/themes/default1/admin/layout/admin.blade.php @@ -296,7 +296,7 @@
  • {!! Lang::get('lang.cron') !!}
  • {!! Lang::get('lang.security') !!}
  • {!! Lang::get('lang.notifications') !!}
  • -
  • {!! Lang::get('lang.approval') !!}
  • +
  • {!! Lang::get('storage::lang.storage') !!}
  • From d9a2e97c228d792cd7fb02785e5b5bf1e3c8504a Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Wed, 21 Dec 2016 07:06:23 +0000 Subject: [PATCH 07/41] Apply fixes from StyleCI --- .../Agent/helpdesk/UserController.php | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/Http/Controllers/Agent/helpdesk/UserController.php b/app/Http/Controllers/Agent/helpdesk/UserController.php index 8dd0b7715..a9ad614d9 100644 --- a/app/Http/Controllers/Agent/helpdesk/UserController.php +++ b/app/Http/Controllers/Agent/helpdesk/UserController.php @@ -32,6 +32,7 @@ use App\Model\helpdesk\Utility\Otp; use App\User; // classes use Auth; +use Datatables; use DateTime; use DB; use Exception; @@ -41,7 +42,6 @@ use Illuminate\Http\Request; use Input; use Lang; use Redirect; -use Datatables; /** * UserController @@ -120,7 +120,7 @@ class UserController extends Controller if ($type === 'agents') { $users = User::where('role', '=', 'agent')->where('is_delete', '=', 0); - } elseif ($type === 'users') { + } elseif ($type === 'users') { $users = User::where('role', '=', 'user')->where('is_delete', '=', 0); } elseif ($type === 'active') { $users = User::where('role', '!=', 'admin')->where('active', '=', 1); @@ -133,19 +133,19 @@ class UserController extends Controller } else { $users = User::where('role', '!=', 'admin')->where('is_delete', '=', 0); } - + $users = $users->select('user_name', 'email', 'mobile', 'active', 'updated_at', 'role', 'id', 'last_name', 'country_code', 'phone_number'); if ($search !== '') { - $users = $users->where(function($query) use ($search){ - $query->where('user_name', 'LIKE', '%'.$search.'%'); - $query->orWhere('email', 'LIKE', '%'.$search.'%'); - $query->orWhere('first_name', 'LIKE', '%'.$search.'%'); - $query->orWhere('last_name', 'LIKE', '%'.$search.'%'); - $query->orWhere('mobile', 'LIKE', '%'.$search.'%'); - $query->orWhere('updated_at', 'LIKE', '%'.$search.'%'); - $query->orWhere('country_code', 'LIKE', '%'.$search.'%'); - }); + $users = $users->where(function ($query) use ($search) { + $query->where('user_name', 'LIKE', '%'.$search.'%'); + $query->orWhere('email', 'LIKE', '%'.$search.'%'); + $query->orWhere('first_name', 'LIKE', '%'.$search.'%'); + $query->orWhere('last_name', 'LIKE', '%'.$search.'%'); + $query->orWhere('mobile', 'LIKE', '%'.$search.'%'); + $query->orWhere('updated_at', 'LIKE', '%'.$search.'%'); + $query->orWhere('country_code', 'LIKE', '%'.$search.'%'); + }); } // displaying list of users with chumper datatables // return \Datatable::collection(User::where('role', "!=", "admin")->get()) From d29ca0e626c922bac1781d29dcbef87045ede177 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Wed, 21 Dec 2016 15:25:30 +0530 Subject: [PATCH 08/41] Bug-fix-patch-6 # Style and UI enhancement in users table for view filteration option. --- .../Agent/helpdesk/UserController.php | 2 +- .../vendor/Chumper/user-javascript.blade.php | 48 +++++++++++++------ 2 files changed, 34 insertions(+), 16 deletions(-) diff --git a/app/Http/Controllers/Agent/helpdesk/UserController.php b/app/Http/Controllers/Agent/helpdesk/UserController.php index a9ad614d9..b2b9bf358 100644 --- a/app/Http/Controllers/Agent/helpdesk/UserController.php +++ b/app/Http/Controllers/Agent/helpdesk/UserController.php @@ -122,7 +122,7 @@ class UserController extends Controller $users = User::where('role', '=', 'agent')->where('is_delete', '=', 0); } elseif ($type === 'users') { $users = User::where('role', '=', 'user')->where('is_delete', '=', 0); - } elseif ($type === 'active') { + } elseif ($type === 'active-users') { $users = User::where('role', '!=', 'admin')->where('active', '=', 1); } elseif ($type === 'inactive') { $users = User::where('role', '!=', 'admin')->where('active', '=', 0); diff --git a/resources/views/vendor/Chumper/user-javascript.blade.php b/resources/views/vendor/Chumper/user-javascript.blade.php index 53bfe4e41..f1f55b214 100644 --- a/resources/views/vendor/Chumper/user-javascript.blade.php +++ b/resources/views/vendor/Chumper/user-javascript.blade.php @@ -39,44 +39,52 @@ foreach($segments as $seg){ $('.all').on('click', function(){ show = 'all'; - $("#chumper").dataTable().fnDestroy(); - myFunction(show, searchTerm); + classname = '.'+show; + filterTable(show); + toggleActiveClass(classname); }); $('.active-users').on('click', function(){ - show = 'active'; - $("#chumper").dataTable().fnDestroy(); - myFunction(show, searchTerm); + show = 'active-users'; + classname = '.'+show; + filterTable(show); + toggleActiveClass(classname); + }); $('.inactive').on('click', function(){ show = 'inactive'; - $("#chumper").dataTable().fnDestroy(); - myFunction(show, searchTerm); + classname = '.'+show; + filterTable(show); + toggleActiveClass(classname); }); $('.agents').on('click', function(){ show = 'agents'; - $("#chumper").dataTable().fnDestroy(); - myFunction(show, searchTerm); + classname = '.'+show; + filterTable(show); + toggleActiveClass(classname); }); $('.users').on('click', function(){ show = 'users'; - $("#chumper").dataTable().fnDestroy(); - myFunction(show, searchTerm); + classname = '.'+show; + filterTable(show); + toggleActiveClass(classname); }); $('.banned').on('click', function(){ show = 'banned'; - $("#chumper").dataTable().fnDestroy(); - myFunction(show, searchTerm); + classname = '.'+show; + filterTable(show); + toggleActiveClass(classname); }); $('.deleted').on('click', function(){ show = 'deleted'; - $("#chumper").dataTable().fnDestroy(); - myFunction(show, searchTerm); + classname = '.'+show; + filterTable(show); + toggleActiveClass(classname); }); document.getElementById('search-text').onkeypress = function(e){ @@ -88,5 +96,15 @@ foreach($segments as $seg){ myFunction(show, searchTerm); } } + + function filterTable(show) { + $("#chumper").dataTable().fnDestroy(); + myFunction(show, searchTerm); + } + + function toggleActiveClass(classname) { + $('.active').removeClass('active'); + $(classname).parent('li').addClass('active'); + } }); \ No newline at end of file From df14836985db6bc04e4615677a792c7612dcfd86 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Wed, 21 Dec 2016 16:29:55 +0530 Subject: [PATCH 09/41] bug-fix-patch-6 # Fixed search input hieght in user directory for all browsers # Showing agents by ascending name order in ticket assign modal pop ups --- app/Http/Controllers/Agent/helpdesk/UserController.php | 2 +- .../themes/default1/agent/helpdesk/ticket/timeline.blade.php | 2 +- .../views/themes/default1/agent/helpdesk/user/index.blade.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Agent/helpdesk/UserController.php b/app/Http/Controllers/Agent/helpdesk/UserController.php index b2b9bf358..ccc0a6896 100644 --- a/app/Http/Controllers/Agent/helpdesk/UserController.php +++ b/app/Http/Controllers/Agent/helpdesk/UserController.php @@ -1074,7 +1074,7 @@ class UserController extends Controller public function getAgentDetails() { - $users = User::where('role', '<>', 'user')->where('active', '=', 1)->get(); + $users = User::where('role', '<>', 'user')->where('active', '=', 1)->orderBy('first_name')->get(); foreach ($users as $user) { echo "'; } diff --git a/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php b/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php index 3a9d33bc6..41abed0af 100644 --- a/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php @@ -1054,7 +1054,7 @@ alert(h+20);

    {!! Lang::get('lang.whome_do_you_want_to_assign_ticket') !!}?

    +
  • From c47b5da890805d0be19d652a980d01c01d1f11bc Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Thu, 22 Dec 2016 13:15:16 +0530 Subject: [PATCH 10/41] bug-fix-patch-7 # while changing owner of the ticket cheking if the owner already owns the ticket or not # fixed showing inactive agents problem in help topic edit and create pages --- .../Admin/helpdesk/HelptopicController.php | 4 ++-- .../Agent/helpdesk/TicketController.php | 3 +++ resources/lang/de/lang.php | 2 ++ resources/lang/en/lang.php | 4 +++- resources/lang/fr/lang.php | 2 ++ resources/lang/it/lang.php | 2 ++ resources/lang/nl/lang.php | 2 ++ resources/lang/pt/lang.php | 2 ++ resources/lang/ru/lang.php | 2 ++ .../manage/helptopic/create.blade.php | 2 +- .../helpdesk/manage/helptopic/edit.blade.php | 2 +- .../agent/helpdesk/ticket/timeline.blade.php | 22 ++++++++++--------- 12 files changed, 34 insertions(+), 15 deletions(-) diff --git a/app/Http/Controllers/Admin/helpdesk/HelptopicController.php b/app/Http/Controllers/Admin/helpdesk/HelptopicController.php index 0f78400fa..82a1669af 100644 --- a/app/Http/Controllers/Admin/helpdesk/HelptopicController.php +++ b/app/Http/Controllers/Admin/helpdesk/HelptopicController.php @@ -85,7 +85,7 @@ class HelptopicController extends Controller $departments = $department->get(); $topics = $topic->get(); $forms = $form->get(); - $agents = $agent->where('role', '=', 'agent')->get(); + $agents = $agent->where('role', '!=', 'user')->where('active', '=', 1)->orderBy('first_name')->get(); $slas = $sla->get(); $priority = Ticket_Priority::where('status', '=', 1)->get(); @@ -143,7 +143,7 @@ class HelptopicController extends Controller public function edit($id, Ticket_Priority $priority, Department $department, Help_topic $topic, Forms $form, Sla_plan $sla) { try { - $agents = User::where('role', '=', 'agent')->get(); + $agents = User::where('role', '!=', 'user')->where('active', '=', 1)->orderBy('first_name')->get(); $departments = $department->get(); $topics = $topic->whereId($id)->first(); $forms = $form->get(); diff --git a/app/Http/Controllers/Agent/helpdesk/TicketController.php b/app/Http/Controllers/Agent/helpdesk/TicketController.php index 1749ccfb2..7af1ebff8 100644 --- a/app/Http/Controllers/Agent/helpdesk/TicketController.php +++ b/app/Http/Controllers/Agent/helpdesk/TicketController.php @@ -2218,6 +2218,9 @@ class TicketController extends Controller if ($count === 1) { $user_id = $user->id; $ticket = Tickets::where('id', '=', $id)->first(); + if($user_id === $ticket->user_id) { + return 400; + } $ticket_number = $ticket->ticket_number; $ticket->user_id = $user_id; $ticket->save(); diff --git a/resources/lang/de/lang.php b/resources/lang/de/lang.php index 936663210..f7f610765 100644 --- a/resources/lang/de/lang.php +++ b/resources/lang/de/lang.php @@ -1155,5 +1155,7 @@ return [ 'inactive-users' => 'Inactive users', 'all-users' => 'All users', 'search' => 'Search...', + //update 21-12-2016 + 'selected-user-is-already-the-owner' => 'Selected user is already the owner of this ticket.', ]; diff --git a/resources/lang/en/lang.php b/resources/lang/en/lang.php index 3582fa87c..81547555c 100644 --- a/resources/lang/en/lang.php +++ b/resources/lang/en/lang.php @@ -1118,7 +1118,7 @@ return [ 'minutes' => ' minutes', 'in_minutes' => 'In minutes', 'add_another_owner' => 'Add another owner', - 'user-not-found' => 'User not found. Try again or add a new user.', + 'user-not-found' => 'User not found or user is inactive. Try again or add a new user.', 'change-success' => 'Success! owner has been changed for this ticket.', 'user-exists' => 'User already exists. Try search existing user.', 'valid-email' => 'Enter a valid email address.', @@ -1592,4 +1592,6 @@ return [ 'inactive-users' => 'Inactive users', 'all-users' => 'All users', 'search' => 'Search...', + //update 21-12-2016 + 'selected-user-is-already-the-owner' => 'Selected user is already the owner of this ticket.', ]; diff --git a/resources/lang/fr/lang.php b/resources/lang/fr/lang.php index 9cc8f4f5a..e3b5c8cf4 100644 --- a/resources/lang/fr/lang.php +++ b/resources/lang/fr/lang.php @@ -1563,5 +1563,7 @@ return [ 'inactive-users' => 'Inactive users', 'all-users' => 'All users', 'search' => 'Search...', + //update 21-12-2016 + 'selected-user-is-already-the-owner' => 'Selected user is already the owner of this ticket.', ]; diff --git a/resources/lang/it/lang.php b/resources/lang/it/lang.php index 94275e16a..aa4fc7cc3 100644 --- a/resources/lang/it/lang.php +++ b/resources/lang/it/lang.php @@ -1115,4 +1115,6 @@ return [ 'inactive-users' => 'Inactive users', 'all-users' => 'All users', 'search' => 'Search...', + //update 21-12-2016 + 'selected-user-is-already-the-owner' => 'Selected user is already the owner of this ticket.', ]; diff --git a/resources/lang/nl/lang.php b/resources/lang/nl/lang.php index 0f8fda029..4ab5bce4c 100644 --- a/resources/lang/nl/lang.php +++ b/resources/lang/nl/lang.php @@ -1609,4 +1609,6 @@ return [ 'inactive-users' => 'Inactive users', 'all-users' => 'All users', 'search' => 'Search...', + //update 21-12-2016 + 'selected-user-is-already-the-owner' => 'Selected user is already the owner of this ticket.', ]; diff --git a/resources/lang/pt/lang.php b/resources/lang/pt/lang.php index 0121dd46a..79a0ec520 100644 --- a/resources/lang/pt/lang.php +++ b/resources/lang/pt/lang.php @@ -1554,5 +1554,7 @@ return [ 'inactive-users' => 'Inactive users', 'all-users' => 'All users', 'search' => 'Search...', + //update 21-12-2016 + 'selected-user-is-already-the-owner' => 'Selected user is already the owner of this ticket.', ]; diff --git a/resources/lang/ru/lang.php b/resources/lang/ru/lang.php index 206d4a3b8..e6a4ae651 100644 --- a/resources/lang/ru/lang.php +++ b/resources/lang/ru/lang.php @@ -1063,4 +1063,6 @@ return [ 'inactive-users' => 'Inactive users', 'all-users' => 'All users', 'search' => 'Search...', + //update 21-12-2016 + 'selected-user-is-already-the-owner' => 'Selected user is already the owner of this ticket.', ]; diff --git a/resources/views/themes/default1/admin/helpdesk/manage/helptopic/create.blade.php b/resources/views/themes/default1/admin/helpdesk/manage/helptopic/create.blade.php index 319f40607..46419ceff 100644 --- a/resources/views/themes/default1/admin/helpdesk/manage/helptopic/create.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/manage/helptopic/create.blade.php @@ -137,7 +137,7 @@ class="active"
    {!! Form::label('auto_assign',Lang::get('lang.auto_assign')) !!} - {!!Form::select('auto_assign', [''=>Lang::get('lang.select_an_agent'),Lang::get('lang.agents')=>$agents->lists('first_name','id')->toArray()],null,['class' => 'form-control']) !!} + {!!Form::select('auto_assign', [''=>Lang::get('lang.select_an_agent'),Lang::get('lang.agents')=>$agents->lists('full_name','id')->toArray()],null,['class' => 'form-control']) !!}
    diff --git a/resources/views/themes/default1/admin/helpdesk/manage/helptopic/edit.blade.php b/resources/views/themes/default1/admin/helpdesk/manage/helptopic/edit.blade.php index a7da41666..36f8707de 100644 --- a/resources/views/themes/default1/admin/helpdesk/manage/helptopic/edit.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/manage/helptopic/edit.blade.php @@ -135,7 +135,7 @@ class="active"
    {!! Form::label('auto_assign',Lang::get('lang.auto_assign')) !!} - {!!Form::select('auto_assign', [''=>Lang::get('lang.select_an_agent'),Lang::get('lang.agents')=>$agents->lists('first_name','id')->toArray()],null,['class' => 'form-control']) !!} + {!!Form::select('auto_assign', [''=>Lang::get('lang.select_an_agent'),Lang::get('lang.agents')=>$agents->lists('full_name','id')->toArray()],null,['class' => 'form-control']) !!}
    diff --git a/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php b/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php index 41abed0af..a3508c1ca 100644 --- a/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php +++ b/resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php @@ -948,7 +948,7 @@ alert(h+20);