We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed41631 commit b7a78b4Copy full SHA for b7a78b4
hook.php
@@ -109,8 +109,12 @@ function plugin_formcreator_getCondition($itemtype) {
109
if (count($groups) < 1) {
110
$condition .= ")";
111
} else {
112
- $groups = implode(',', $groups);
113
- $condition .= " OR `$table`.`groups_id_validator` IN ($groups) )";
+ $groupIDs = [];
+ foreach ($groups as $group) {
114
+ $groupIDs[] = $group['id'];
115
+ }
116
+ $groupIDs = implode(',', $groupIDs);
117
+ $condition .= " OR `$table`.`groups_id_validator` IN ($groupIDs) )";
118
}
119
return $condition;
120
0 commit comments