From 9d37d7c3aa5f98f3905d37961020aec753f8227d Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 21 Aug 2014 13:10:49 -0500 Subject: [PATCH] oops: Fix crash rendering ticket filter subsystem --- include/class.dynamic_forms.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index c221dd3f0..bb95d76b3 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(); } -- GitLab