Skip to content

Commit

Permalink
Cast old() returned value to an Integer
Browse files Browse the repository at this point in the history
  • Loading branch information
MackenzieMolloy committed Jul 18, 2024
1 parent 2dcd39c commit 2ae1771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/admin/nodes/view/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<div>
<select name="location_id" class="form-control">
@foreach($locations as $location)
<option value="{{ $location->id }}" {{ (old('location_id', $node->location_id) === $location->id) ? 'selected' : '' }}>{{ $location->long }} ({{ $location->short }})</option>
<option value="{{ $location->id }}" {{ (((int) old('location_id', $node->location_id)) === $location->id) ? 'selected' : '' }}>{{ $location->long }} ({{ $location->short }})</option>
@endforeach
</select>
</div>
Expand Down

0 comments on commit 2ae1771

Please sign in to comment.