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

oops: Fix crash rendering ticket filter subsystem

parent 3b12f56e
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment