Skip to content

Commit 148eb08

Browse files
committed
WIP
1 parent a02028b commit 148eb08

6 files changed

+17
-1
lines changed

application/controllers/CommentController.php

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public function init()
3131
'host.state',
3232
'service',
3333
'service.state',
34+
'service.host',
35+
'service.host.state'
3436
]);
3537

3638
$query->disableDefaultSort();

application/controllers/CommentsController.php

+6
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public function indexAction()
3131
'host',
3232
'host.state',
3333
'service',
34+
'service.host',
35+
'service.host.state',
3436
'service.state'
3537
]);
3638

@@ -112,6 +114,8 @@ public function deleteAction()
112114
'host',
113115
'host.state',
114116
'service',
117+
'service.host',
118+
'service.host.state',
115119
'service.state'
116120
]);
117121

@@ -142,6 +146,8 @@ public function detailsAction()
142146
'host',
143147
'host.state',
144148
'service',
149+
'service.host',
150+
'service.host.state',
145151
'service.state'
146152
]);
147153

application/controllers/DowntimeController.php

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public function init()
3131
'host.state',
3232
'service',
3333
'service.state',
34+
'service.host',
35+
'service.host.state',
3436
'parent',
3537
'parent.host',
3638
'parent.host.state',

application/controllers/DowntimesController.php

+6
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public function indexAction()
3131
'host',
3232
'host.state',
3333
'service',
34+
'service.host',
35+
'service.host.state',
3436
'service.state'
3537
]);
3638

@@ -117,6 +119,8 @@ public function deleteAction()
117119
'host',
118120
'host.state',
119121
'service',
122+
'service.host',
123+
'service.host.state',
120124
'service.state'
121125
]);
122126

@@ -147,6 +151,8 @@ public function detailsAction()
147151
'host',
148152
'host.state',
149153
'service',
154+
'service.host',
155+
'service.host.state',
150156
'service.state'
151157
]);
152158

application/controllers/HostgroupController.php

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public function init()
3131

3232
foreach ($query->getUnions() as $unionPart) {
3333
$unionPart->filter(Filter::equal('hostgroup.name', $name));
34-
$unionPart->disableDefaultSort();
3534
}
3635

3736
$this->applyRestrictions($query);

application/controllers/ServiceController.php

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ public function historyAction()
112112

113113
$history = History::on($db)->with([
114114
'host',
115+
'host.service',
115116
'host.state',
116117
'service',
117118
'service.state',

0 commit comments

Comments
 (0)