Skip to content

Commit f8a0406

Browse files
committed
fix #2451 added fallback to select_from_array column
1 parent ba7b056 commit f8a0406

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
foreach ($values as $key => $value) {
1313
if (! is_null($value)) {
14-
$array_of_values[] = $column['options'][$value];
14+
$array_of_values[] = $column['options'][$value] ?? $values;
1515
} else {
1616
echo '-';
1717
continue;
@@ -24,7 +24,7 @@
2424
echo array_first($array_of_values);
2525
}
2626
} else {
27-
echo $column['options'][$values];
27+
echo $column['options'][$values] ?? $values;
2828
}
2929
} else {
3030
echo '-';

0 commit comments

Comments
 (0)