Skip to content

Commit 239e60d

Browse files
authored
Merge pull request #3816 from Laravel-Backpack/select-from-array-fix
fix for 0 key in select from array
2 parents 34f9aa9 + 92341d9 commit 239e60d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/views/crud/fields/select_from_array.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
@if (count($field['options']))
1919
@foreach ($field['options'] as $key => $value)
20-
@if((old(square_brackets_to_dots($field['name'])) && (
20+
@if((old(square_brackets_to_dots($field['name'])) !== null && (
2121
$key == old(square_brackets_to_dots($field['name'])) ||
2222
(is_array(old(square_brackets_to_dots($field['name']))) &&
2323
in_array($key, old(square_brackets_to_dots($field['name'])))))) ||

0 commit comments

Comments
 (0)