We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6169412 commit 023a60eCopy full SHA for 023a60e
hook.php
@@ -111,8 +111,12 @@ function plugin_formcreator_getCondition($itemtype) {
111
if (count($groups) < 1) {
112
$condition .= ")";
113
} else {
114
- $groups = implode(',', $groups);
115
- $condition .= " OR `$table`.`groups_id_validator` IN ($groups) )";
+ $groupIDs = [];
+ foreach ($groups as $group) {
116
+ $groupIDs[] = $group['id'];
117
+ }
118
+ $groupIDs = implode(',', $groupIDs);
119
+ $condition .= " OR `$table`.`groups_id_validator` IN ($groupIDs) )";
120
}
121
return $condition;
122
0 commit comments