Bugzilla – Attachment 106190 Details for
Bug 24156
Basket - Make sort order and number of items to display configurable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24156: Fix soem QA failures
Bug-24156-Fix-soem-QA-failures.patch (text/plain), 3.50 KB, created by
Jonathan Druart
on 2020-06-23 09:33:34 UTC
(
hide
)
Description:
Bug 24156: Fix soem QA failures
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-06-23 09:33:34 UTC
Size:
3.50 KB
patch
obsolete
>From 1f023608fe3bbf1afccbc10d5622d74c2bb3c8b3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 23 Jun 2020 11:29:05 +0200 >Subject: [PATCH] Bug 24156: Fix soem QA failures > >* Add POD to get_table_settings >* Remove USE Dumper debug statement >* Add missing "10" entry >* Fix newly created test file (and renamed) >--- > C4/Utils/DataTables/TablesSettings.pm | 16 ++++++++++++++++ > .../prog/en/modules/admin/columns_settings.tt | 2 +- > .../{ColumnsSettings.t => TablesSettings.t} | 4 ++-- > 3 files changed, 19 insertions(+), 3 deletions(-) > rename t/db_dependent/Koha/Template/Plugin/{ColumnsSettings.t => TablesSettings.t} (69%) > >diff --git a/C4/Utils/DataTables/TablesSettings.pm b/C4/Utils/DataTables/TablesSettings.pm >index a343944407..518f53fac6 100644 >--- a/C4/Utils/DataTables/TablesSettings.pm >+++ b/C4/Utils/DataTables/TablesSettings.pm >@@ -59,6 +59,22 @@ sub get_columns { > return $columns; > } > >+=head3 get_table_settings >+ >+my $settings = C4::Utils::DataTables::TablesSettings::get_table_settings( >+ { >+ module => $module, >+ pag => $page, >+ tablename => $tablename, >+ } >+); >+ >+Returns the settings for a given table. >+ >+The settings are default_display_length and default_sort_order. >+ >+=cut >+ > sub get_table_settings { > my ( $module, $page, $tablename ) = @_; > my $list = get_yaml; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt >index 04c6fad899..ce2c9c4e0c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt >@@ -3,7 +3,6 @@ > [% USE TablesSettings %] > [% SET footerjs = 1 %] > [% SET panel_id = 0 %] >-[% USE Dumper %] > [% BLOCK pagelist %] > [% IF module.keys and module.keys.size > 0 %] > Jump to: >@@ -101,6 +100,7 @@ > [% IF table_settings.default_display_length == 10 %] > <option value="10" selected="selected">10</option> > [% ELSE %] >+ <option value="10">10</option> > [% END %] > [% IF table_settings.default_display_length == 20 %] > <option value="20" selected="selected">20</option> >diff --git a/t/db_dependent/Koha/Template/Plugin/ColumnsSettings.t b/t/db_dependent/Koha/Template/Plugin/TablesSettings.t >similarity index 69% >rename from t/db_dependent/Koha/Template/Plugin/ColumnsSettings.t >rename to t/db_dependent/Koha/Template/Plugin/TablesSettings.t >index 6a9777719f..4c5d333ba5 100644 >--- a/t/db_dependent/Koha/Template/Plugin/ColumnsSettings.t >+++ b/t/db_dependent/Koha/Template/Plugin/TablesSettings.t >@@ -10,10 +10,10 @@ use Test::More tests => 3; > use t::lib::Mocks; > > BEGIN { >- use_ok('Koha::Template::Plugin::ColumnsSettings', "Can use Koha::Template::Plugin::ColumnsSettings"); >+ use_ok('Koha::Template::Plugin::TablesSettings', "Can use Koha::Template::Plugin::TablesSettings"); > } > >-ok( my $settings = Koha::Template::Plugin::ColumnsSettings->new(), 'Able to instantiate template plugin' ); >+ok( my $settings = Koha::Template::Plugin::TablesSettings->new(), 'Able to instantiate template plugin' ); > > subtest "is_hidden" => sub { > plan tests => 2; >-- >2.20.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 24156
:
96223
|
96224
|
96225
|
96226
|
96227
|
96228
|
96229
|
96230
|
98449
|
98450
|
98451
|
98452
|
98453
|
98454
|
98455
|
98456
|
98843
|
98844
|
98845
|
98846
|
98847
|
98848
|
99007
|
99008
|
99009
|
99010
|
99011
|
99012
|
99013
|
99014
|
105823
|
105824
|
105825
|
105826
|
105827
|
105828
|
105829
|
106183
|
106184
|
106185
|
106186
|
106187
|
106188
|
106189
|
106190
|
106191
|
106219
|
106220
|
106221
|
106222
|
106223
|
106224
|
106225
|
106226
|
106227
|
106228
|
106245