Skip to content

Commit

Permalink
Drop not injectable fields before single linkfield workaround
Browse files Browse the repository at this point in the history
fixes #259
fixes #243
fixes #233
  • Loading branch information
cconard96 committed Mar 1, 2022
1 parent 430bdaa commit 0fbf3d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inc/commoninjectionlib.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2004,6 +2004,13 @@ static function addToSearchOptions(array $type_searchOptions, array $options,
}
}

// Drop not injectable fields
foreach ($type_searchOptions as $id => $tmp) {
if (!isset($tmp['injectable']) || $tmp['injectable'] <= 0) {
unset($type_searchOptions[$id]);
}
}

foreach (['displaytype', 'checktype'] as $paramtype) {
if (isset($options[$paramtype])) {
foreach ($options[$paramtype] as $type => $tabsID) {
Expand Down

0 comments on commit 0fbf3d1

Please sign in to comment.