ObjectController: fix usage link
This commit is contained in:
parent
15a8886db7
commit
35acda4865
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue