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

Don't crash if a custom list has no property form

parent 7c774c75
No related branches found
No related tags found
No related merge requests found
...@@ -1086,10 +1086,12 @@ class DynamicListItem extends VerySimpleModel { ...@@ -1086,10 +1086,12 @@ class DynamicListItem extends VerySimpleModel {
function getFilterData() { function getFilterData() {
$raw = $this->getConfiguration(); $raw = $this->getConfiguration();
$props = array(); $props = array();
foreach ($this->getConfigurationForm()->getFields() as $field) { if ($form = $this->getConfigurationForm()) {
$tag = $field->get('id'); foreach ($form->getFields() as $field) {
if (isset($raw[$tag])) $tag = $field->get('id');
$props[".$tag"] = $field->toString($raw[$tag]); if (isset($raw[$tag]))
$props[".$tag"] = $field->toString($raw[$tag]);
}
} }
return $props; return $props;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment