Bug 41807 - Fix automatic tab selection on basket groups page
Summary: Fix automatic tab selection on basket groups page
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on: 41563
Blocks:
  Show dependency treegraph
 
Reported: 2026-02-10 13:17 UTC by Owen Leonard
Modified: 2026-02-10 13:30 UTC (History)
2 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41807: Fix automatic tab selection on basket groups page (1.92 KB, patch)
2026-02-10 13:30 UTC, Owen Leonard
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Leonard 2026-02-10 13:17:10 UTC
There is some JS in basketgroups.tt which is intended to allow the script to pass a parameter for selecting the "Closed" tab on page reload but it has not been updated since the tabs WRAPPER work
Comment 1 Owen Leonard 2026-02-10 13:30:05 UTC
Created attachment 192900 [details] [review]
Bug 41807: Fix automatic tab selection on basket groups page

This patch fixes the JS in the basket groups template which is intended
to select the "Closed" tab when a "listclosed" parameter is passed.

To test, apply the patch and go to Acquisitions.

- Search for and view a vendor.
- Click "Basket groups" in the sidebar.
- Create a new basket group if necessary.
- Click "Delete" to remove the basket group.
- When the page reloads the "Closed" tab should be selected.
- Create a new basket group if necessary and click "Close and export as
  PDF." When the page reloads the "Closed" tab should be selected.
- Click "Reopen." The "Closed" tab should again be selected.

The patch doesn't make any changes to existing behavior but I think we
should re-evaluate whether the "Closed" tab is the right place to go
after deleting or reopening a basket group.

Sponsored-by: Athens County Public Libraries