From 0db37fd75e32e95e428cf9c141f16eb0d7953810 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 4 Mar 2020 07:54:00 +0100 Subject: [PATCH] services/history: Fix duplicate history entries ce0ec14 was wrong, only the operator had to be removed. --- application/controllers/ServiceController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php index 17065655..c2813a8f 100644 --- a/application/controllers/ServiceController.php +++ b/application/controllers/ServiceController.php @@ -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) {