[Bug 40825] New: CGI::param called in list context from koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40825 Bug ID: 40825 Summary: CGI::param called in list context from koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/item search.tt Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: m.de.rooy@rijksmuseum.nl QA Contact: testopia@bugs.koha-community.org This is an TT issue with default list context on this template line: [% IF query.param(name _ '_op') == '=' || !query.param(name _ '_op') %] I am not sure if passing query to a template is a good idea anyway. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40825 --- Comment #1 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Just for reference: https://template-toolkit.org/docs/modules/Template/Stash/Context.html -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40825 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch Assignee|koha-bugs@lists.koha-commun |m.de.rooy@rijksmuseum.nl |ity.org | Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40825 --- Comment #2 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 211262 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211262&action=edit Bug 40825: Scalarize all query.param calls in itemsearch template Adding [% USE scalar %] and a replace on query.param. 32 substitutions on 25 lines Test plan: Verify that everything still works as expected. Check if the 'CGI::param called in list context from ...itemsearch.tt' warns have stopped in plack-intranet-error.log. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40825 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40825 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #211262|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40825 --- Comment #3 from David Nind <david@davidnind.com> --- Created attachment 212483 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212483&action=edit Bug 40825: Scalarize all query.param calls in itemsearch template Adding [% USE scalar %] and a replace on query.param. 32 substitutions on 25 lines Test plan: Verify that everything still works as expected. Check if the 'CGI::param called in list context from ...itemsearch.tt' warns have stopped in plack-intranet-error.log. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org