Skip to content

Commit 38b7b4b

Browse files
Cast old() returned value to an Integer (#5163)
1 parent d2949ea commit 38b7b4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/admin/nodes/view/settings.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<div>
5555
<select name="location_id" class="form-control">
5656
@foreach($locations as $location)
57-
<option value="{{ $location->id }}" {{ (old('location_id', $node->location_id) === $location->id) ? 'selected' : '' }}>{{ $location->long }} ({{ $location->short }})</option>
57+
<option value="{{ $location->id }}" {{ (((int) old('location_id', $node->location_id)) === $location->id) ? 'selected' : '' }}>{{ $location->long }} ({{ $location->short }})</option>
5858
@endforeach
5959
</select>
6060
</div>

0 commit comments

Comments
 (0)