Bug 41779 - Late orders: disable batch controls if no checkboxes are checked
Summary: Late orders: disable batch controls if no checkboxes are checked
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-05 18:55 UTC by Owen Leonard
Modified: 2026-02-06 07:11 UTC (History)
0 users

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


Attachments
Bug 41779: Late orders: disable batch controls if no checkboxes are checked (6.22 KB, patch)
2026-02-05 19:11 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 41779: Late orders: disable batch controls if no checkboxes are checked (6.26 KB, patch)
2026-02-06 07:11 UTC, David Nind
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-05 18:55:20 UTC
On the late orders page, the "Export" and "Claim" controls should be disabled when there are no orders have their checkboxes checked.
Comment 1 Owen Leonard 2026-02-05 19:11:30 UTC
Created attachment 192542 [details] [review]
Bug 41779: Late orders: disable batch controls if no checkboxes are checked

This patch adds JavaScript which changes the enabled or disabled state
of the batch controls on the late orders page: "Export as CSV" and
"Claim order."

To test you must have more than one late order.

- Apply the patch and go to Acquisitions -> Late orders.
- At the bottom of the table of late orders you should see the "Export
  as CSV" and "Claim order" buttons and they should be disabled.
- Try checking and unchecking boxes, and confirm that the controls are
  enabled and disabled as they should be.
- Filter your list of late orders by vendor using the filter form in the
  sidebar.
- Test that the "Check all" and "Uncheck all" controls above the table.
  The batch controls should be enabled and disabled correctly.

Sponsored-by: Athens County Public Libraries
Comment 2 David Nind 2026-02-06 07:11:29 UTC
Created attachment 192583 [details] [review]
Bug 41779: Late orders: disable batch controls if no checkboxes are checked

This patch adds JavaScript which changes the enabled or disabled state
of the batch controls on the late orders page: "Export as CSV" and
"Claim order."

To test you must have more than one late order.

- Apply the patch and go to Acquisitions -> Late orders.
- At the bottom of the table of late orders you should see the "Export
  as CSV" and "Claim order" buttons and they should be disabled.
- Try checking and unchecking boxes, and confirm that the controls are
  enabled and disabled as they should be.
- Filter your list of late orders by vendor using the filter form in the
  sidebar.
- Test that the "Check all" and "Uncheck all" controls above the table.
  The batch controls should be enabled and disabled correctly.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>