Bugzilla – Attachment 158605 Details for
Bug 35278
CGI::param called in list context from /usr/share/koha/admin/columns_settings.pl line 76
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35278: Fix warn from column_settings.pl
Bug-35278-Fix-warn-from-columnsettingspl.patch (text/plain), 3.08 KB, created by
Marcel de Rooy
on 2023-11-07 15:12:33 UTC
(
hide
)
Description:
Bug 35278: Fix warn from column_settings.pl
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-11-07 15:12:33 UTC
Size:
3.08 KB
patch
obsolete
>From 5ac1693938452c5e7a8422decdd32f476a348769 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 6 Nov 2023 14:00:49 +0000 >Subject: [PATCH] Bug 35278: Fix warn from column_settings.pl >Content-Type: text/plain; charset=utf-8 > >We need to add scalar to the calls. These parameters are not meant >to be used as multi_param. > >Test plan: >Try With and without this patch on staff: > >Try: /cgi-bin/koha/admin/columns_settings.pl >=> WITHOUT: No warnings >=> WITH: Same. No change. >Try: /cgi-bin/koha/admin/columns_settings.pl?module=acqui&page=basket >=> WITHOUT: Opens module, scrolls down. CGI::param called in list context in logfile >=> WITH: Opens module, scrolls down. >Try: /cgi-bin/koha/admin/columns_settings.pl?module=acqui&page=basket&table=orders >=> WITHOUT: Opens module, scrolls down. CGI::param called in list context in logfile >=> WITH: Opens module, scrolls down. > >Try: /cgi-bin/koha/admin/columns_settings.pl?module=acqui&module=admin >* Hash like: panel => acqui, admin => page, undef => table, undef => modules, $modules (SHIFTED) >=> WITHOUT: Acqui expanded showing: There is no page using the table configuration in this module. >=> CGI::param warning in log. >=> And: Problem = a value of table has been passed to param without key >=> And: Problem = a value of modules has been passed to param without key >=> WITH: Only the first module (Acqui) should be expanded. > >Try: /cgi-bin/koha/admin/columns_settings.pl?module=acqui&module=admin&page=basket&table=orders >* Hash like: panel => acqui, admin => page, basket => table, orders => modules, $modules hash (SHIFTED) >=> WITHOUT: Acqui expanded showing: There is no page using the table configuration in this module. >=> And: CGI param log warning. >=> WITH:: Opens Acqui. Second module ignored. Scrolling. > >Try: /cgi-bin/koha/admin/columns_settings.pl?module=admin&module=acqui&page=basket&table=orders >* Hash like: panel => admin, acqui=> page, basket => table, orders => modules, $modules hash (SHIFTED) >=> WITHOUT: Admin expanded showing: There is no page using the table configuration in this module. >=> And: CGI param log warning. >=> WITH: Admin should be expanded (page and table ignored, not in Admin). No scroll. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > admin/columns_settings.pl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/admin/columns_settings.pl b/admin/columns_settings.pl >index 55ebb66e2e..7fd2c1b18c 100755 >--- a/admin/columns_settings.pl >+++ b/admin/columns_settings.pl >@@ -74,9 +74,9 @@ if ( $action eq 'save' ) { > if ( $action eq 'list' ) { > my $modules = C4::Utils::DataTables::TablesSettings::get_modules; > $template->param( >- panel => defined $input->param('module') ? $input->param('module') : undef, >- page => defined $input->param('page') ? $input->param('page') : undef, >- table => defined $input->param('table') ? $input->param('table') : undef, >+ panel => scalar $input->param('module'), >+ page => scalar $input->param('page'), >+ table => scalar $input->param('table'), > modules => $modules, > ); > } >-- >2.30.2
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 35278
:
158605
|
158632
|
158753