Skip to content

Commit

Permalink
EZP-26890: hiding content tree menu on error (#117)
Browse files Browse the repository at this point in the history
* EZP-26890: hiding content tree menu on error
(cherry picked from commit d1f8d2336e1c430c5679337efaac42db3a5a81cf)
  • Loading branch information
tomaszmadeyski authored and glye committed Sep 11, 2017
1 parent a99ad14 commit a4a0470
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion design/admin/templates/parts/content/menu.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div id="content-tree">

{* In case of error menu is hidden. It prevents showing content tree in case of errors i.e. module / action is disabled *}
{if ne(module_params().module_name, 'error')}
{* DESIGN: Header START *}<div class="box-header"><div class="box-ml">
<h4>{'Content structure'|i18n( 'design/admin/parts/content/menu' )}</h4>
{* DESIGN: Header END *}</div></div>
Expand All @@ -18,6 +19,7 @@
{/if}

{* DESIGN: Content END *}</div></div></div>
{/if}
</div>

{* See parts/ini_menu.tpl and menu.ini for more info, or parts/setup/menu.tpl for full example *}
Expand Down

0 comments on commit a4a0470

Please sign in to comment.