From 35acda4865beb6a017fd61fd26d9f3506822d635 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 15 Oct 2018 14:52:03 +0200 Subject: [PATCH] ObjectController: fix usage link --- library/Director/Web/Controller/ObjectController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/Director/Web/Controller/ObjectController.php b/library/Director/Web/Controller/ObjectController.php index 73ae7ae6..c1a0d4e3 100644 --- a/library/Director/Web/Controller/ObjectController.php +++ b/library/Director/Web/Controller/ObjectController.php @@ -237,11 +237,15 @@ abstract class ObjectController extends ActionController return $this; } + /** + * @return $this + * @throws NotFoundError + */ protected function addActionUsage() { $type = $this->getType(); $object = $this->requireObject(); - if ($object->isTemplate() && ! $type === 'serviceSet') { + if ($object->isTemplate() && $type !== 'serviceSet') { $this->actions()->add([ Link::create( $this->translate('Usage'),