IcingaObject: Fix listed applied Groups to show mixed apply/static

In case a group has been statically assigned to other object it would
have been hidden.

This should only affect UI and legacy rendering.
This commit is contained in:
Markus Frosch 2018-09-11 14:03:36 +02:00
parent ff77aa9879
commit a2f7ff03c1
1 changed files with 1 additions and 1 deletions

View File

@ -871,7 +871,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
[]
)->joinLeft(
['go' => "icinga_${type}group_${type}"],
"go.${type}group_id = gr.${type}group_id",
"go.${type}group_id = gr.${type}group_id AND go.${type}_id = " . $this->id,
[]
)->where(
"gr.${type}_id = ?",