Skip to content

Commit 6a1e1ee

Browse files
committed
fix #3835
1 parent 8698b8e commit 6a1e1ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// and format it to JSON, so that select2 can parse it
1313
$current_value = old(square_brackets_to_dots($field['name'])) ?? old($field['name']) ?? $field['value'] ?? $field['default'] ?? '';
1414
15-
if ($current_value !== false) {
15+
if ($current_value !== false && !empty($current_value)) {
1616
switch (gettype($current_value)) {
1717
case 'array':
1818
$current_value = $connected_entity

0 commit comments

Comments
 (0)