mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
DowntimeQuery: Fix grouping
There was only one downtime for each host or service being fetched. refs #9009
This commit is contained in:
parent
75c5aab1b9
commit
83c21f08e3
@ -107,7 +107,7 @@ class HostdowntimeQuery extends IdoQuery
|
|||||||
'hgo.objecttype_id = ?',
|
'hgo.objecttype_id = ?',
|
||||||
3
|
3
|
||||||
);
|
);
|
||||||
$this->group('ho.name1');
|
$this->group(array('sd.scheduleddowntime_id', 'ho.name1'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -183,6 +183,6 @@ class HostdowntimeQuery extends IdoQuery
|
|||||||
'so.objecttype_id = ?',
|
'so.objecttype_id = ?',
|
||||||
2
|
2
|
||||||
);
|
);
|
||||||
$this->group('ho.name1');
|
$this->group(array('sd.scheduleddowntime_id', 'ho.name1'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ class ServicedowntimeQuery extends IdoQuery
|
|||||||
'hgo.objecttype_id = ?',
|
'hgo.objecttype_id = ?',
|
||||||
3
|
3
|
||||||
);
|
);
|
||||||
$this->group(array('so.name2', 'so.name1'));
|
$this->group(array('sd.scheduleddowntime_id', 'so.name2', 'so.name1'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -166,7 +166,7 @@ class ServicedowntimeQuery extends IdoQuery
|
|||||||
'sgo.objecttype_id = ?',
|
'sgo.objecttype_id = ?',
|
||||||
4
|
4
|
||||||
);
|
);
|
||||||
$this->group(array('so.name2', 'so.name1'));
|
$this->group(array('sd.scheduleddowntime_id', 'so.name2', 'so.name1'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user