Merge pull request #269 from ladybirdweb/analysis-8wWbO4
Applied fixes from StyleCI
This commit is contained in:
@@ -61,17 +61,15 @@ class OrganizationController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is used autofill organizations name .
|
* This function is used autofill organizations name .
|
||||||
*
|
*
|
||||||
* @return datatable
|
* @return datatable
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public function organizationAutofill()
|
public function organizationAutofill()
|
||||||
{
|
{
|
||||||
return view('themes.default1.agent.helpdesk.organization.getautocomplete');
|
return view('themes.default1.agent.helpdesk.organization.getautocomplete');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is used to display the list of Organizations.
|
* This function is used to display the list of Organizations.
|
||||||
|
@@ -748,66 +748,49 @@ class UserController extends Controller
|
|||||||
public function UserAssignOrg($id)
|
public function UserAssignOrg($id)
|
||||||
{
|
{
|
||||||
$org_name = Input::get('org');
|
$org_name = Input::get('org');
|
||||||
|
|
||||||
if($org_name){
|
|
||||||
|
|
||||||
$org= Organization::where('name','=',$org_name)->lists('id')->first();
|
|
||||||
if($org){
|
|
||||||
|
|
||||||
$user_org = new User_org();
|
if ($org_name) {
|
||||||
$user_org->org_id = $org;
|
$org = Organization::where('name', '=', $org_name)->lists('id')->first();
|
||||||
$user_org->user_id = $id;
|
if ($org) {
|
||||||
$user_org->save();
|
$user_org = new User_org();
|
||||||
|
$user_org->org_id = $org;
|
||||||
|
$user_org->user_id = $id;
|
||||||
|
$user_org->save();
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
} else {
|
||||||
else{
|
return 0;
|
||||||
|
}
|
||||||
return 0;
|
} else {
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
return 2;
|
return 2;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
/**
|
|
||||||
* Assigning an user to an organization.
|
* Assigning an user to an organization.
|
||||||
*
|
*
|
||||||
* @param type $id
|
* @param type $id
|
||||||
*
|
*
|
||||||
* @return type boolean
|
* @return type boolean
|
||||||
*/
|
*/
|
||||||
public function UsereditAssignOrg($id)
|
public function UsereditAssignOrg($id)
|
||||||
{
|
{
|
||||||
$org_name = Input::get('org');
|
$org_name = Input::get('org');
|
||||||
|
|
||||||
if($org_name){
|
|
||||||
|
|
||||||
$org= Organization::where('name','=',$org_name)->lists('id')->first();
|
|
||||||
if($org){
|
|
||||||
|
|
||||||
$user_org =User_org::where('user_id','=',$id)->first();
|
if ($org_name) {
|
||||||
$user_org->org_id = $org;
|
$org = Organization::where('name', '=', $org_name)->lists('id')->first();
|
||||||
$user_org->user_id = $id;
|
if ($org) {
|
||||||
$user_org->save();
|
$user_org = User_org::where('user_id', '=', $id)->first();
|
||||||
|
$user_org->org_id = $org;
|
||||||
|
$user_org->user_id = $id;
|
||||||
|
$user_org->save();
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
} else {
|
||||||
else{
|
return 0;
|
||||||
|
}
|
||||||
return 0;
|
} else {
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
return 2;
|
return 2;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -505,7 +505,7 @@ Route::group(['middleware' => ['web']], function () {
|
|||||||
$breadcrumbs->push(Lang::get('lang.view_organization_profile'), url('organizations/{organizations}'));
|
$breadcrumbs->push(Lang::get('lang.view_organization_profile'), url('organizations/{organizations}'));
|
||||||
});
|
});
|
||||||
Route::get('org-list', ['as' => 'org.list', 'uses' => 'Agent\helpdesk\OrganizationController@org_list']);
|
Route::get('org-list', ['as' => 'org.list', 'uses' => 'Agent\helpdesk\OrganizationController@org_list']);
|
||||||
Route::get('organization-autofill', ['as' => 'post.organization.autofill', 'uses' => 'Agent\helpdesk\OrganizationController@organizationAutofill']);//auto fill organization name//
|
Route::get('organization-autofill', ['as' => 'post.organization.autofill', 'uses' => 'Agent\helpdesk\OrganizationController@organizationAutofill']); //auto fill organization name//
|
||||||
Route::get('org/delete/{id}', ['as' => 'org.delete', 'uses' => 'Agent\helpdesk\OrganizationController@destroy']);
|
Route::get('org/delete/{id}', ['as' => 'org.delete', 'uses' => 'Agent\helpdesk\OrganizationController@destroy']);
|
||||||
Route::get('org-chart/{id}', 'Agent\helpdesk\OrganizationController@orgChartData');
|
Route::get('org-chart/{id}', 'Agent\helpdesk\OrganizationController@orgChartData');
|
||||||
// Route::post('org-chart-range', ['as' => 'post.org.chart', 'uses' => 'Agent\helpdesk\OrganizationController@orgChartData']);
|
// Route::post('org-chart-range', ['as' => 'post.org.chart', 'uses' => 'Agent\helpdesk\OrganizationController@orgChartData']);
|
||||||
|
@@ -1507,26 +1507,26 @@ return [
|
|||||||
* User Module
|
* User Module
|
||||||
* --------------------------------------------------------------------------------------------
|
* --------------------------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
'agent_report' =>'Agent Report',
|
'agent_report' => 'Agent Report',
|
||||||
'assign_tickets' =>'Assign Tickets',
|
'assign_tickets' => 'Assign Tickets',
|
||||||
'delete_agent' =>'Delete Agent',
|
'delete_agent' => 'Delete Agent',
|
||||||
'delete_user' =>'Delete User',
|
'delete_user' => 'Delete User',
|
||||||
'confirm_deletion' => 'Confirm Deletion',
|
'confirm_deletion' => 'Confirm Deletion',
|
||||||
'delete_all_content' => ' Delete all content',
|
'delete_all_content' => ' Delete all content',
|
||||||
'agent_profile' => 'Agent Profile',
|
'agent_profile' => 'Agent Profile',
|
||||||
'change_role_to_admin' => 'Change Role To Admin',
|
'change_role_to_admin' => 'Change Role To Admin',
|
||||||
'change_role_to_user' => 'Change Role To User',
|
'change_role_to_user' => 'Change Role To User',
|
||||||
'change_role_to_agent' => 'Change Role To Agent',
|
'change_role_to_agent' => 'Change Role To Agent',
|
||||||
'change_password' => 'Change Password',
|
'change_password' => 'Change Password',
|
||||||
'role_change' => 'Role Change',
|
'role_change' => 'Role Change',
|
||||||
'password_generator' => 'Password Generator',
|
'password_generator' => 'Password Generator',
|
||||||
'depertment' => 'Depertment',
|
'depertment' => 'Depertment',
|
||||||
'duetoday' => 'Due Today',
|
'duetoday' => 'Due Today',
|
||||||
'today-due_tickets' => 'Today\'s due ticekts',
|
'today-due_tickets' => 'Today\'s due ticekts',
|
||||||
'password_change_successfully' => 'Password Change Successfully',
|
'password_change_successfully' => 'Password Change Successfully',
|
||||||
'role_change_successfully' => 'Role Change Successfully',
|
'role_change_successfully' => 'Role Change Successfully',
|
||||||
'user_delete_successfully' => 'User Delete Successfully',
|
'user_delete_successfully' => 'User Delete Successfully',
|
||||||
'agent_delete_successfully' => 'Agent Delete Successfully',
|
'agent_delete_successfully' => 'Agent Delete 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 Delete Successfully And Ticket Assign TO Another Agent',
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user