View | Details | Raw Unified | Return to bug 16237
Collapse All | Expand All

(-)a/admin/edi_accounts.pl (-2 / +7 lines)
Lines 53-60 if ( $op eq 'acct_form' ) { Link Here
53
    );
53
    );
54
    $template->param( vendors => \@vendors );
54
    $template->param( vendors => \@vendors );
55
55
56
    my @plugins = Koha::Plugins->new()->GetPlugins('edifact');
56
    my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins");
57
    $template->param( plugins => \@plugins );
57
    $template->param( plugins_enabled => $plugins_enabled );
58
59
    if ( $plugins_enabled ) {
60
        my @plugins = Koha::Plugins->new()->GetPlugins('edifact');
61
        $template->param( plugins => \@plugins );
62
    }
58
}
63
}
59
elsif ( $op eq 'delete_confirm' ) {
64
elsif ( $op eq 'delete_confirm' ) {
60
    show_account();
65
    show_account();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt (-1 / +4 lines)
Lines 76-81 Link Here
76
     [% END %]
76
     [% END %]
77
     </select>
77
     </select>
78
  </li>
78
  </li>
79
  [% IF plugins_enabled %]
79
  <li>
80
  <li>
80
     <label for="plugin">Plugin: </label>
81
     <label for="plugin">Plugin: </label>
81
     <select name="plugin" id="plugin">
82
     <select name="plugin" id="plugin">
Lines 89-94 Link Here
89
        [% END %]
90
        [% END %]
90
     </select>
91
     </select>
91
  </li>
92
  </li>
93
  [% ELSE %]
94
  <input type="hidden" name="plugin" value="" />
95
  [% END %]
92
  <li>
96
  <li>
93
     <label for="description">Description: </label>
97
     <label for="description">Description: </label>
94
     <input type="text" name="description" id="description" size="20" maxlength="90" value="[% account.description %]" />
98
     <input type="text" name="description" id="description" size="20" maxlength="90" value="[% account.description %]" />
95
- 

Return to bug 16237