Bugzilla – Attachment 114660 Details for
Bug 27292
TablesSettings.GetColumns() returning nothing creates unexpected Javascript on request.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27292: Add TablesSettings directive to fix columns_settings_borrowers_table
Bug-27292-Add-TablesSettings-directive-to-fix-colu.patch (text/plain), 2.03 KB, created by
David Cook
on 2020-12-23 04:44:33 UTC
(
hide
)
Description:
Bug 27292: Add TablesSettings directive to fix columns_settings_borrowers_table
Filename:
MIME Type:
Creator:
David Cook
Created:
2020-12-23 04:44:33 UTC
Size:
2.03 KB
patch
obsolete
>From ad36663d4c9151bee0a5cfb42de1aa35b3ebeb61 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Wed, 23 Dec 2020 04:41:58 +0000 >Subject: [PATCH] Bug 27292: Add TablesSettings directive to fix > columns_settings_borrowers_table > >This patch adds the USE TablesSettings directive which allows the plugin >to be invoked to fill the columns_settings_borrowers_table variable. > >Test plan: >0. Do not apply the patch >1. Go to http://localhost:8081/cgi-bin/koha/reserve/request.pl?borrowernumber=51&biblionumber=29 >2. View source on the page and note columns_settings_borrowers_table has no value assigned >2. Apply the patch >3. In a new tab, go to http://localhost:8081/cgi-bin/koha/reserve/request.pl?borrowernumber=51&biblionumber=29 >4. Note that nothing has changed on the surfeace >5. View source ont he page and note columns_settings_borrowers_table now has a value assigned >--- > koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index f479387c7e..1b0accaef1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -8,6 +8,7 @@ > [% USE ItemTypes %] > [% USE AuthorisedValues %] > [% USE Price %] >+[% USE TablesSettings %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > [% UNLESS ( multi_hold ) %] >@@ -1010,7 +1011,7 @@ > itemAlreadyOnHold: _("Patron already has hold for this item"), > cannotBeTransferred: _("Cannot be transferred to pickup library") > } >- columns_settings_borrowers_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %] >+ columns_settings_borrowers_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]; > > $(document).ready(function() { > $('#cancellation-reason-fieldset').hide(); >-- >2.11.0
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 27292
:
114660
|
114703
|
114946