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

filters: Fixup subfield listing for organizations

parent 24004ee2
No related branches found
No related tags found
No related merge requests found
......@@ -439,8 +439,8 @@ Filter::addSupportedMatches(/*@trans*/ 'Organization Data', function() {
if (!$f->hasData())
continue;
$matches['field.'.$f->get('id')] = __('Organization').' / '.$f->getLabel();
if (($fi = $f->getImpl()) instanceof SelectionField) {
foreach ($fi->getList()->getProperties() as $p) {
if (($fi = $f->getImpl()) && $fi->hasSubFields()) {
foreach ($fi->getSubFields() as $p) {
$matches['field.'.$f->get('id').'.'.$p->get('id')]
= __('Organization').' / '.$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