Skip to content

Commit a02028b

Browse files
committed
WIP
1 parent d903b35 commit a02028b

9 files changed

+11
-0
lines changed

application/controllers/CommentController.php

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function init()
3333
'service.state',
3434
]);
3535

36+
$query->disableDefaultSort();
3637
$query->getSelectBase()
3738
->where(['comment.name = ?' => $name]);
3839

application/controllers/DowntimeController.php

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function init()
4545
$query->getSelectBase()
4646
->where(['downtime.name = ?' => $name]);
4747

48+
$query->disableDefaultSort();
4849
$this->applyRestrictions($query);
4950

5051
$downtime = $query->first();

application/controllers/EventController.php

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public function init()
4848
])
4949
->filter(Filter::equal('id', hex2bin($id)));
5050

51+
$query->disableDefaultSort();
5152
$this->applyRestrictions($query);
5253

5354
$event = $query->first();

application/controllers/HostController.php

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

4141
$query = Host::on($this->getDb())->with(['state', 'icon_image']);
4242
$query->setResultSetClass(VolatileStateResults::class);
43+
$query->disableDefaultSort();
4344
$query->getSelectBase()
4445
->where(['host.name = ?' => $name]);
4546

application/controllers/HostgroupController.php

+2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ public function init()
2727
$name = $this->params->getRequired('name');
2828

2929
$query = Hostgroupsummary::on($this->getDb());
30+
$query->disableDefaultSort();
3031

3132
foreach ($query->getUnions() as $unionPart) {
3233
$unionPart->filter(Filter::equal('hostgroup.name', $name));
34+
$unionPart->disableDefaultSort();
3335
}
3436

3537
$this->applyRestrictions($query);

application/controllers/ServiceController.php

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function init()
4444
]);
4545
$query->setResultSetClass(VolatileStateResults::class);
4646

47+
$query->disableDefaultSort();
4748
$query->getSelectBase()
4849
->where(['service.name = ?' => $name])
4950
->where(['service_host.name = ?' => $hostName]);

application/controllers/ServicegroupController.php

+2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ public function init()
2727
$name = $this->params->getRequired('name');
2828

2929
$query = ServicegroupSummary::on($this->getDb());
30+
$query->disableDefaultSort();
3031

3132
foreach ($query->getUnions() as $unionPart) {
3233
$unionPart->filter(Filter::equal('servicegroup.name', $name));
34+
$unionPart->disableDefaultSort();
3335
}
3436

3537
$this->applyRestrictions($query);

application/controllers/UserController.php

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function init()
2424
$name = $this->params->getRequired('name');
2525

2626
$query = User::on($this->getDb());
27+
$query->disableDefaultSort();
2728
$query->getSelectBase()
2829
->where(['user.name = ?' => $name]);
2930

application/controllers/UsergroupController.php

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function init()
2424
$name = $this->params->getRequired('name');
2525

2626
$query = Usergroup::on($this->getDb());
27+
$query->disableDefaultSort();
2728
$query->getSelectBase()
2829
->where(['usergroup.name = ?' => $name]);
2930

0 commit comments

Comments
 (0)