diff --git a/app/Jobs/Auth/UpdateUser.php b/app/Jobs/Auth/UpdateUser.php index 1e2a044c6..859691e41 100644 --- a/app/Jobs/Auth/UpdateUser.php +++ b/app/Jobs/Auth/UpdateUser.php @@ -89,7 +89,7 @@ class UpdateUser extends Job implements ShouldUpdate } // Can't unassigned company, The company must be assigned at least one user. - $companies = $this->request->get('companies'); + $companies = (array) $this->request->get('companies', []); $user_companies = $this->model->companies()->pluck('id')->toArray(); $company_diff = array_diff($user_companies, $companies); diff --git a/app/View/Components/Show/Right.php b/app/View/Components/Show/Right.php new file mode 100644 index 000000000..e998ce92d --- /dev/null +++ b/app/View/Components/Show/Right.php @@ -0,0 +1,21 @@ + { td_item.addEventListener("click", () => { window.location.href = row_href; }); + + // added target blank for click mouse middle button + td_item.addEventListener('mousedown', (event) => { + if (event.button == 1 || event.buttons == 4) { + window.open(row_href, "_blank"); + } + }); + // added target blank for click mouse middle button } } }); diff --git a/resources/views/components/show/content/right.blade.php b/resources/views/components/show/content/right.blade.php index f00f7de97..c32340551 100644 --- a/resources/views/components/show/content/right.blade.php +++ b/resources/views/components/show/content/right.blade.php @@ -1,5 +1,6 @@
- - + @if (! isset($attributes['disable-loading'])) + + @endif {!! $slot !!}