From ee20841ad61d778f61ccf139a1bedcb938e17cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20R=C3=B6hrl?= Date: Fri, 15 Feb 2019 10:39:33 +0100 Subject: [PATCH] fix failed unit test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakob Röhrl --- lib/Service/LabelService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Service/LabelService.php b/lib/Service/LabelService.php index a3a9639b9..2fc5658e3 100644 --- a/lib/Service/LabelService.php +++ b/lib/Service/LabelService.php @@ -93,6 +93,7 @@ class LabelService { $this->permissionService->checkPermission(null, $boardId, Acl::PERMISSION_MANAGE); //$this->checkDuplicateTitle($boardId, $title); + $boardLabels = array(); $boardLabels = $this->labelMapper->findAll($boardId); foreach($boardLabels as $boardLabel) { if ($boardLabel->getTitle() === $title) { @@ -166,6 +167,7 @@ class LabelService { $label = $this->find($id); //$this->checkDuplicateTitle($label->getBoardId(), $title); + $boardLabels = array(); $boardLabels = $this->labelMapper->findAll($label->getBoardId()); foreach($boardLabels as $boardLabel) { if ($boardLabel->getId() === $label->getId()) {