Skip to content

Commit 97ba9fc

Browse files
committed
fixes
1 parent 5eb3df0 commit 97ba9fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/views/crud/fields/relationship/fetch.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// make sure the $field['value'] takes the proper value
2727
// and format it to JSON, so that select2 can parse it
2828
$current_value = old(square_brackets_to_dots($field['name'])) ?? $field['value'] ?? $field['default'] ?? '';
29-
if ($current_value != false) {
29+
if (!empty($current_value) || is_int($current_value)) {
3030
switch (gettype($current_value)) {
3131
case 'array':
3232
$current_value = $connected_entity

0 commit comments

Comments
 (0)