Bug 40988 - Subfunds in acqui-home.pl and aqbudgets.pl are not collapsible beyond 20th line
Summary: Subfunds in acqui-home.pl and aqbudgets.pl are not collapsible beyond 20th line
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-09 18:11 UTC by Andrew Fuerste-Henry
Modified: 2025-10-09 19:57 UTC (History)
2 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2025-10-09 18:11:58 UTC
When Koha renders the table of funds and subfunds for the acq homepage and the funds page in Administration, it inserts a little triangle button next to each parent fund that can be used to collapse the associated sub-funds. However, it only inserts these little buttons for parent funds within the first 20 funds returned. Beyond the 20th fund, all funds & subfunds and listed correctly but the triangle button isn't offered and subfunds cannot be collapsed.

This page defaults to 20 entries per page and it looks like we're only inserting collapse buttons for what's shown at page load. If one adjusts the table to show only 10 entries, the 11th-20th parent funds will still show their collapse button successfully, but changing the number of entries to show doesn't reload the page.

To recreate:
- Have 20 funds, no subfunds
- Add a subfund to the first fund in your list
- see that the parent fund has a little triangle you can use to collapse its subfund
- note that this has pushed the last fund in your list onto a second page
- add a subfund to the last fund in your list
- confirm this parent fund on does *not* get a little triangle button and you cannot collapse it