Skip to content

Commit

Permalink
Fix injection
Browse files Browse the repository at this point in the history
  • Loading branch information
Lainow committed Dec 11, 2024
1 parent 9c5735f commit 9153c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/commoninjectionlib.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,7 @@ private function effectiveAddOrUpdate($injectionClass, $item, $values, $add = tr
//CommonDBRelation are managed separately, so related field should be ignored
// Ex : User -> groups_id -> Group_User
// groups_id should not be injected in User (field contains group name (string))
if ($option !== false && isset($option['displaytype']) && $option['displaytype'] == 'relation' && !($item instanceof CommonDBRelation)) {
if ($option !== false && isset($option['displaytype']) && $option['displaytype'] == 'relation' || !($item instanceof CommonDBRelation)) {
continue;
}

Expand Down

0 comments on commit 9153c87

Please sign in to comment.