Bugzilla – Attachment 91129 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), 3.06 KB, created by
Frédéric Demians
on 2019-06-29 07:13:34 UTC
(
hide
)
Description:
Bug 23222: Update plugins-home.tt with new ENABLE/DISABLE flag name
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2019-06-29 07:13:34 UTC
Size:
3.06 KB
patch
obsolete
>From 67073af1663767ee3f02994efdbb9d772b5f9010 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 >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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 > >Signed-off-by: Frédéric Demians <f.demians@tamil.fr> >--- > koha-tmpl/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 786290b..5d598c5 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.7.4
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