We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8698b8e commit 6a1e1eeCopy full SHA for 6a1e1ee
src/resources/views/crud/fields/relationship/fetch_or_create.blade.php
@@ -12,7 +12,7 @@
12
// and format it to JSON, so that select2 can parse it
13
$current_value = old(square_brackets_to_dots($field['name'])) ?? old($field['name']) ?? $field['value'] ?? $field['default'] ?? '';
14
15
- if ($current_value !== false) {
+ if ($current_value !== false && !empty($current_value)) {
16
switch (gettype($current_value)) {
17
case 'array':
18
$current_value = $connected_entity
0 commit comments