Skip to content

Commit

Permalink
enum values in schema.json vs schema.ui.json (GetDKAN#4041) - feedbac…
Browse files Browse the repository at this point in the history
…k review
  • Loading branch information
stefan-korn committed Dec 11, 2023
1 parent 0b721a0 commit e0e3117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/json_form_widget/src/WidgetRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function handleListElement($spec, array $element) {
*/
public function getDropdownElement($element, $spec, $titleProperty = FALSE) {
$element['#type'] = $this->getSelectType($spec);
if ($spec->source) {
if (isset($spec->source)) {
$element['#options'] = $this->getDropdownOptions($spec->source, $titleProperty);
}
if ($element['#type'] === 'select_or_other_select') {
Expand Down

0 comments on commit e0e3117

Please sign in to comment.