Skip to content

Commit 30bdeb2

Browse files
author
Marvin Kuhn
committed
fix: use node property to determinante if node is auto created
1 parent f3a3c9f commit 30bdeb2

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

Classes/Controller/ModuleController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ public function indexAction(NodeInterface $root = null)
114114
foreach ($vocabularyNodes as $vocabulary) {
115115
$vocabularies[] = [
116116
'node' => $vocabulary,
117-
'isAutoCreated' => $vocabulary->isAutocreated(),
118117
'defaultNode' => $this->getNodeInDefaultDimensions($vocabulary)
119118
];
120119
}

Resources/Private/Templates/Module/Index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h3>
4343
<i class="fas fa-pencil-alt"></i>
4444
</f:link.action>
4545

46-
<f:if condition="!{vocabulary.isAutoCreated}" >
46+
<f:if condition="!{vocabulary.node.autoCreated}" >
4747
<button class="neos-button neos-button-danger" title="{f:translate(id: 'generic.delete')}" data-toggle="modal" href="#deleteVocabulary_{vocabulary.node.identifier}" data-neos-toggle="tooltip">
4848
<i class="fas fa-trash-alt icon-white"></i>
4949
</button>

0 commit comments

Comments
 (0)