Bug 35743

Summary: The "category" filter is not selected in the column filter dropdown
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: PatronsAssignee: Jonathan Druart <jonathan.druart>
Status: Pushed to stable --- QA Contact: Martin Renvoize <martin.renvoize>
Severity: minor    
Priority: P5 - low CC: fridolin.somers, gmcharlt, kyle.m.hall, martin.renvoize
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.05.00,23.11.03
Bug Depends on: 32517    
Bug Blocks: 35329    
Attachments: Bug 35743: Fix patron's category selection in the column filter
Bug 35743: Fix patron's category selection in the column filter
Bug 35743: Fix patron's category selection in the column filter

Description Jonathan Druart 2024-01-09 13:49:28 UTC
When a patron search is triggered and a category has been selected, the dropdown filter on top of the column does not contain the selected category.
Comment 1 Jonathan Druart 2024-01-09 14:01:29 UTC
Created attachment 160695 [details] [review]
Bug 35743: Fix patron's category selection in the column filter

The "category" filter is not selected in the column filter dropdown.

Test plan:
0. Do not apply this patch
1. Search for patron, select a patron's category
=> Notice that the "Category" column has a column filter, but no option
   is selected
2. Apply the patch
3. Repeat 1
=> The "Category" column has the option you selected in the filter block.
Comment 2 Owen Leonard 2024-01-09 16:45:58 UTC
Created attachment 160711 [details] [review]
Bug 35743: Fix patron's category selection in the column filter

The "category" filter is not selected in the column filter dropdown.

Test plan:
0. Do not apply this patch
1. Search for patron, select a patron's category
   => Notice that the "Category" column has a column filter, but no
      option is selected
2. Apply the patch
3. Repeat 1
   => The "Category" column has the option you selected in the filter
      block.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 3 Martin Renvoize 2024-01-17 11:04:08 UTC
Created attachment 161092 [details] [review]
Bug 35743: Fix patron's category selection in the column filter

The "category" filter is not selected in the column filter dropdown.

Test plan:
0. Do not apply this patch
1. Search for patron, select a patron's category
   => Notice that the "Category" column has a column filter, but no
      option is selected
2. Apply the patch
3. Repeat 1
   => The "Category" column has the option you selected in the filter
      block.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 4 Martin Renvoize 2024-01-17 11:04:44 UTC
Trivial fix working as expected.. Passing QA
Comment 5 Katrin Fischer 2024-01-29 11:29:05 UTC
Pushed for 24.05!

Well done everyone, thank you!
Comment 6 Fridolin Somers 2024-02-01 14:47:04 UTC
Pushed to 23.11.x for 23.11.03