A free open source IT asset/license management system
Allow setting id within location-select
Marcus Moore69b9b0bbc00e
diff --git a/resources/views/blade/input/location-select.blade.php b/resources/views/blade/input/location-select.blade.phpindex 5dd31374ea..f9bd28fa63 100644--- a/resources/views/blade/input/location-select.blade.php+++ b/resources/views/blade/input/location-select.blade.php@@ -11,6 +11,15 @@'hideNewButton' => false,])+@php+ $id = $name . '_location_select';++ // User provided id, overwrite the default+ if ($attributes->has('id')) {+ $id = $attributes->get('id');+ }+@endphp+<div@class(['form-group',@@ -26,7 +35,7 @@data-placeholder="{{ trans('general.select_location') }}"name="{{ $name }}"style="width: 100%"- id="{{ $name }}_location_select"+ id="{{ $id }}"aria-label="{{ $name }}"@required($required)@if ($multiple)