@@ -, +, @@ disabled 1. Disable in koha-conf.xml (restart memcached if needed). 2. Open the EDI accounts admin page. 3. Notice incredible breakage. 4. Apply patch. 5. Reload page, should now display (and the "Plugin:" dropdown should be hidden). 6. Re-enable (and the UseKohaPlugins syspref as well). 7. Ensure that the "Plugin:" dropdown is once again displayed. --- admin/edi_accounts.pl | 9 +++++++-- koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) --- a/admin/edi_accounts.pl +++ a/admin/edi_accounts.pl @@ -53,8 +53,13 @@ if ( $op eq 'acct_form' ) { ); $template->param( vendors => \@vendors ); - my @plugins = Koha::Plugins->new()->GetPlugins('edifact'); - $template->param( plugins => \@plugins ); + my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins"); + $template->param( plugins_enabled => $plugins_enabled ); + + if ( $plugins_enabled ) { + my @plugins = Koha::Plugins->new()->GetPlugins('edifact'); + $template->param( plugins => \@plugins ); + } } elsif ( $op eq 'delete_confirm' ) { show_account(); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt @@ -76,6 +76,7 @@ [% END %] + [% IF plugins_enabled %]
  • + [% ELSE %] + + [% END %]
  • --