Bug 37285

Summary: Printing lists only prints the ten first results
Product: Koha Reporter: Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski>
Component: ListsAssignee: Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski>
Status: Pushed to oldoldstable --- QA Contact: Laura Escamilla <Laura.escamilla>
Severity: minor    
Priority: P5 - low CC: fridolin.somers, Laura.escamilla, lucas, m.de.rooy, wainuiwitikapark
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36858
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.11.00,24.05.04,23.11.09,23.05.15
Circulation function:
Attachments: Bug 37285: Printing lists only prints the ten first results
Bug 37285: Printing lists only prints the ten first results
Bug 37285: QA Perl Tidy

Description Baptiste Wojtkowski (bwoj) 2024-07-09 09:41:44 UTC
GIVEN koha in a version later than 22.11, a list with more than ten entries
WHEN the user tries to print the list
THEN only the ten first results are printed

EXPECTED THEN all results are printed
Comment 1 Baptiste Wojtkowski (bwoj) 2024-07-09 14:34:49 UTC
Created attachment 168665 [details] [review]
Bug 37285: Printing lists only prints the ten first results

GIVEN koha in a version later than 22.11, a list with more than ten entries
WHEN the user tries to print the list
THEN only the ten first results are printed

EXPECTED THEN all results are printed

It looks like it is an undesired effect of BZ36858. Page remains set
even while printing, therefore, however the number of rows is not set,
default value (10) is used.

TEST PLAN

1 - create a list with more than 10 items
2 - print the list -> there is a pagination and that only 10 items
  are printed
Apply patch
3 - print the list again -> every items are being printed
Comment 2 Owen Leonard 2024-07-09 17:18:14 UTC
Created attachment 168673 [details] [review]
Bug 37285: Printing lists only prints the ten first results

GIVEN koha in a version later than 22.11, a list with more than ten entries
WHEN the user tries to print the list
THEN only the ten first results are printed

EXPECTED THEN all results are printed

It looks like it is an undesired effect of BZ36858. Page remains set
even while printing, therefore, however the number of rows is not set,
default value (10) is used.

TEST PLAN

1 - create a list with more than 10 items
2 - print the list -> there is a pagination and that only 10 items
  are printed
Apply patch
3 - print the list again -> every items are being printed

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 3 Laura Escamilla 2024-07-25 15:23:44 UTC
Created attachment 169566 [details] [review]
Bug 37285: QA Perl Tidy

Looks great! QA tool is happy, passing QA.
Comment 4 Martin Renvoize 2024-07-26 12:55:55 UTC
Thanks for all the hard work!

Pushed to main for the next 24.11.00 release as RM Assistant
Comment 5 Lucas Gass 2024-08-29 15:06:46 UTC
Backported to 24.05.x for upcoming 24.05.04
Comment 6 Fridolin Somers 2024-09-10 14:50:19 UTC
Pushed to 23.11.x for 23.11.09
Comment 7 wainuiwitikapark 2024-09-18 06:26:45 UTC
Backported to 23.05.x for 23.05.15