Skip to content

A free open source IT asset/license management system

Weaken comparsion so string and int keys match

Marcus Moorebc3f236b86c8
diff --git a/resources/views/blade/input/select.blade.php b/resources/views/blade/input/select.blade.php
index c96b5e1772..9ddbbd6d7c 100644
--- a/resources/views/blade/input/select.blade.php
+++ b/resources/views/blade/input/select.blade.php
@@ -17,7 +17,7 @@
{{-- map the simple key => value pairs when nothing is passed in via the slot --}}
@if($slot->isEmpty())
@foreach($options as $key => $value)
- <option value="{{ $key }}" @selected($selected === $key)>{{ $value }}</option>
+ <option value="{{ $key }}" @selected($selected == $key)>{{ $value }}</option>
@endforeach
@else
{{ $slot }}