Bugzilla – Attachment 91111 Details for
Bug 23222
Fix DISABLE/ENABLE plugin label in plugins home
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23222: Update plugins-home.tt with new ENABLE/DISABLE flag name
Bug-23222-Update-plugins-homett-with-new-ENABLEDIS.patch (text/plain), 2.93 KB, created by
Agustín Moyano
on 2019-06-28 17:08:15 UTC
(
hide
)
Description:
Bug 23222: Update plugins-home.tt with new ENABLE/DISABLE flag name
Filename:
MIME Type:
Creator:
Agustín Moyano
Created:
2019-06-28 17:08:15 UTC
Size:
2.93 KB
patch
obsolete
>From b21f8c86e2f2bec0ca0de44c327852b6ee32a36e Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Wed, 26 Jun 2019 16:15:43 -0300 >Subject: [PATCH] Bug 23222: Update plugins-home.tt with new ENABLE/DISABLE > flag name > >At some point of history, the flag to indicate if a plugin was enabled/disabled was called "enabled", now it's called "is_enabled" > >To test: >1) get a fresh master copy >2) Enable plugins >3) Install any plugin >CHECK => plugin appears as disabled > => If you try to enable it, it just appears as disabled just the same >4) Apply this patch >5) Reload page >SUCCESS => plugin appears as enabled > => enable / disable action works again >6) Sign off >--- > .../intranet-tmpl/prog/en/modules/plugins/plugins-home.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt >index 786290bb64..5d598c525e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt >@@ -79,7 +79,7 @@ > <tr> > <td> > <strong>[% plugin.metadata.name | html %]</strong> >- [% IF ( plugin.enabled ) %] >+ [% IF ( plugin.is_enabled ) %] > <span class="label label-primary">ENABLED</span> > [% ELSE %] > <span class="label label-default">DISABLED</span> >@@ -131,7 +131,7 @@ > [% END %] > [% IF ( CAN_user_plugins_manage ) %] > <li><a class="uninstall_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class | html %]"><i class="fa fa-trash fa-fw"></i> Uninstall</a></li> >- [% IF ( plugin.enabled ) %] >+ [% IF ( plugin.is_enabled ) %] > <li><a class="enable_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-enable.pl?class=[% plugin.class | html %]&method=disable"><i class="fa fa-pause fa-fw"></i> Disable</a></li> > [% ELSE %] > <li><a class="enable_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-enable.pl?class=[% plugin.class | html %]&method=enable"><i class="fa fa-play fa-fw"></i> Enable</a></li> >-- >2.17.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23222
:
91111
|
91129
|
91163