diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index da13ad45e71e2a50bddb34a0a1785e775ee54042..c0a203646ffd02170cf4c5a1eff44778687722d8 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -1086,10 +1086,12 @@ class DynamicListItem extends VerySimpleModel { function getFilterData() { $raw = $this->getConfiguration(); $props = array(); - foreach ($this->getConfigurationForm()->getFields() as $field) { - $tag = $field->get('id'); - if (isset($raw[$tag])) - $props[".$tag"] = $field->toString($raw[$tag]); + if ($form = $this->getConfigurationForm()) { + foreach ($form->getFields() as $field) { + $tag = $field->get('id'); + if (isset($raw[$tag])) + $props[".$tag"] = $field->toString($raw[$tag]); + } } return $props; }