Skip to content

Commit

Permalink
TASK: Stay in the selected dimension during all ui operations
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel committed Mar 22, 2019
1 parent 434a84f commit 5e396f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Classes/Controller/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ public function createVocabularyAction(NodeInterface $taxonomyRoot, $title, $des
*/
public function editVocabularyAction(NodeInterface $vocabulary)
{
$taxonomyRoot = $this->taxonomyService->getRoot($vocabulary->getContext());
$this->view->assign('taxonomyRoot', $taxonomyRoot);
$this->view->assign('vocabulary', $vocabulary);
$this->view->assign('defaultVocabulary', $this->getNodeInDefaultDimensions($vocabulary));
}
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Module/EditVocabulary.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</f:if>
</div>

<f:link.action class="neos-button" action="index">{f:translate(id: 'module.cancel')}</f:link.action>
<f:link.action class="neos-button" action="index" arguments="{root: taxonomyRoot}">{f:translate(id: 'module.cancel')}</f:link.action>
<f:form.submit value="{f:translate(id: 'module.save')}" class="neos-button neos-button-primary" />

</fieldset>
Expand Down

0 comments on commit 5e396f8

Please sign in to comment.