Browse Source

Bug 26908: (follow-up) Alter template check

This alters the template check to use the presence of the plugins
arrayref rather than requiring a second call to check for
plugins_enabled.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
20.11.x
Martin Renvoize 11 months ago
committed by Jonathan Druart
parent
commit
a10db1347d
  1. 1
      admin/edi_accounts.pl
  2. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt

1
admin/edi_accounts.pl

@ -116,7 +116,6 @@ else {
}
$template->param(
plugins_enabled => C4::Context->config("enable_plugins"),
code_qualifiers => [
{
code => '14',

2
koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt

@ -78,7 +78,7 @@
[% END %]
</select>
</li>
[% IF plugins_enabled %]
[% IF plugins %]
<li>
<label for="plugin">Plugin: </label>
<select name="plugin" id="plugin">

Loading…
Cancel
Save