diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index c221dd3f05a18cc87cae7df3bc49085c3808465a..bb95d76b3f3cc6295603fc712f35b55a565bf4f8 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -250,7 +250,7 @@ Filter::addSupportedMatches(/* trans */ 'User Data', function() { continue; $matches['field.'.$f->get('id')] = __('User').' / '.$f->getLabel(); if (($fi = $f->getImpl()) instanceof SelectionField) { - foreach ($fi->getList()->getProperties() as $p) { + foreach ($fi->getList()->getForm()->getFields() as $p) { $matches['field.'.$f->get('id').'.'.$p->get('id')] = __('User').' / '.$f->getLabel().' / '.$p->getLabel(); } @@ -340,7 +340,7 @@ Filter::addSupportedMatches(/* trans */ 'Ticket Data', function() { continue; $matches['field.'.$f->get('id')] = __('Ticket').' / '.$f->getLabel(); if (($fi = $f->getImpl()) instanceof SelectionField) { - foreach ($fi->getList()->getProperties() as $p) { + foreach ($fi->getList()->getForm()->getFields() as $p) { $matches['field.'.$f->get('id').'.'.$p->get('id')] = __('Ticket').' / '.$f->getLabel().' / '.$p->getLabel(); }