Merge branch 'master' into user-works
This commit is contained in:
@ -43,13 +43,13 @@ class CreateContact extends Job implements HasOwner, HasSource, ShouldCreate
|
||||
throw new \Exception($message);
|
||||
}
|
||||
|
||||
$customer_role = Role::all()->filter(function ($role) {
|
||||
$customer_role_id = Role::all()->filter(function ($role) {
|
||||
return $role->hasPermission('read-client-portal');
|
||||
})->pluck('id')->toArray();
|
||||
})->pluck('id')->first();
|
||||
|
||||
$this->request->merge([
|
||||
'locale' => setting('default.locale', 'en-GB'),
|
||||
'roles' => $customer_role,
|
||||
'roles' => $customer_role_id,
|
||||
'companies' => [$this->request->get('company_id')],
|
||||
]);
|
||||
|
||||
|
@ -57,13 +57,13 @@ class UpdateContact extends Job implements ShouldUpdate
|
||||
throw new \Exception($message);
|
||||
}
|
||||
|
||||
$customer_role = Role::all()->filter(function ($role) {
|
||||
$customer_role_id = Role::all()->filter(function ($role) {
|
||||
return $role->hasPermission('read-client-portal');
|
||||
})->pluck('id')->toArray();
|
||||
})->pluck('id')->first();
|
||||
|
||||
$this->request->merge([
|
||||
'locale' => setting('default.locale', 'en-GB'),
|
||||
'roles' => $customer_role,
|
||||
'roles' => $customer_role_id,
|
||||
'companies' => [$this->request->get('company_id')],
|
||||
]);
|
||||
|
||||
|
@ -27,6 +27,7 @@ class Country extends Component
|
||||
*/
|
||||
public function __construct($code) {
|
||||
$this->code = $code;
|
||||
$this->country = trans('general.na');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -36,7 +37,9 @@ class Country extends Component
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
$this->country = trans('countries.' . $this->code);
|
||||
if (! empty($this->code)) {
|
||||
$this->country = trans('countries.' . $this->code);
|
||||
}
|
||||
|
||||
return view('components.index.country');
|
||||
}
|
||||
|
Reference in New Issue
Block a user