diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php index 44cbc3f7d..3fec500d5 100644 --- a/application/controllers/ServiceController.php +++ b/application/controllers/ServiceController.php @@ -123,7 +123,9 @@ public function historyAction() ->getSelectBase() ->where([ 'history_host_service.id = ?' => $this->service->id, - 'history_service.id = ?' => $this->service->id + 'history_service.id = ?' => $this->service->id, + 'history.service_id = ?' => $this->service->id, + 'history.object_type = ?' => 'service' ]); $before = $this->params->shift('before', time());