Skip to content
Snippets Groups Projects
Commit 741dea2e authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix bad merge for list properties as sub-fields

parent 87603359
No related branches found
No related tags found
No related merge requests found
......@@ -1132,10 +1132,13 @@ class SelectionField extends FormField {
}
function hasSubFields() {
return true;
return $this->getList()->getForm();
}
function getSubFields() {
return $this->getConfigurationForm()->getFields();
$form = $this->getList()->getForm();
if ($form)
return $form->getFields();
return array();
}
function toString($items) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment