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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return $this
|
||||||
|
* @throws NotFoundError
|
||||||
|
*/
|
||||||
protected function addActionUsage()
|
protected function addActionUsage()
|
||||||
{
|
{
|
||||||
$type = $this->getType();
|
$type = $this->getType();
|
||||||
$object = $this->requireObject();
|
$object = $this->requireObject();
|
||||||
if ($object->isTemplate() && ! $type === 'serviceSet') {
|
if ($object->isTemplate() && $type !== 'serviceSet') {
|
||||||
$this->actions()->add([
|
$this->actions()->add([
|
||||||
Link::create(
|
Link::create(
|
||||||
$this->translate('Usage'),
|
$this->translate('Usage'),
|
||||||
|
|
Loading…
Reference in New Issue