Permalink
Browse files

Fix an issue preventing the Save button to appear for plugin parameters

 is a special variable in RainTPL used in loops
  • Loading branch information...
ArthurHoaro committed Jan 1, 2018
1 parent d77bdb4 commit d7995542598b31378637bf457a776b52b556ffde
Showing with 3 additions and 3 deletions.
  1. +3 −3 tpl/default/pluginsadmin.html
@@ -137,9 +137,9 @@ <h2 class="window-title">{'Plugin configuration'|t}</h2>
{if="count($enabledPlugins)==0"}
<p class="center">{'No plugin enabled.'|t}</p>
{else}
{$counter=0}
{$nbParameters=0}
{loop="$enabledPlugins"}
{$counter=$counter+count($value.parameters)}
{$nbParameters=$nbParameters+count($value.parameters)}
{if="count($value.parameters) > 0"}
<div class="plugin_parameters">
<h3 class="window-subtitle">{function="str_replace('_', ' ', $key)"}</h3>
@@ -161,7 +161,7 @@ <h3 class="window-subtitle">{function="str_replace('_', ' ', $key)"}</h3>
</div>
{/if}
{/loop}
{if="$counter===0"}
{if="$nbParameters===0"}
<p class="center">{'No parameter available.'|t}</p>
{else}
<div class="center">

0 comments on commit d799554

Please sign in to comment.