File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/resources/views/crud/fields/relationship Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 (! empty ( $current_value ) || is_int ( $current_value ) ) {
1616 switch (gettype ($current_value )) {
1717 case ' array' :
1818 $current_value = $connected_entity
Original file line number Diff line number Diff line change 1818 $current_value = old (square_brackets_to_dots ($field [' name' ])) ?? $field [' value' ] ?? $field [' default' ] ?? ' ' ;
1919
2020
21- if ($current_value != false ) {
21+ if (! empty ( $current_value ) || is_int ( $current_value ) ) {
2222 switch (gettype ($current_value )) {
2323 case ' array' :
2424 $current_value = $connected_entity
You can’t perform that action at this time.
0 commit comments