services/history: Fix duplicate history entries

ce0ec14 was wrong, only the operator had to be removed.
This commit is contained in:
Johannes Meyer 2020-03-04 07:54:00 +01:00
parent 817daec321
commit 0db37fd75e

View file

@ -129,7 +129,10 @@ class ServiceController extends Controller
$history
->getSelectBase()
->where(['history_service.id = ?' => $this->service->id]);
->where([
'history_host_service.id = ?' => $this->service->id,
'history_service.id = ?' => $this->service->id
]);
$url = ServiceLinks::history($this->service, $this->service->host);
if (! $this->params->has('page') || ($page = (int) $this->params->shift('page')) < 1) {