Skip to content

Commit 9338f97

Browse files
authored
Merge pull request #3670 from Laravel-Backpack/select-nested-field-fix-output
fix echoing of select2 nested
2 parents b48ceec + e42c182 commit 9338f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/views/crud/fields/select2_nested.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function echoSelect2NestedEntry($entry, $field, $current_value) {
1616
} else {
1717
$selected = '';
1818
}
19-
echo "<option value='".$entry->getKey()."' '.$selected.'>";
19+
echo '<option value="'.$entry->getKey().'"'.$selected.'>';
2020
echo str_repeat("-", (int)$entry->depth > 1 ? (int)$entry->depth - 1 : 0).' '.$entry->{$field['attribute']};
2121
echo "</option>";
2222
}

0 commit comments

Comments
 (0)