Bug 43293 - Add IDs to the Pay/Write off confirm buttons on paycollect.tt
Summary: Add IDs to the Pay/Write off confirm buttons on paycollect.tt
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Target Milestone: ---
Assignee: Martin Renvoize (ashimema)
QA Contact: Lucas Gass (lukeg)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-08-13 14:08 UTC by Martin Renvoize (ashimema)
Modified: 2026-11-02 12:30 UTC (History)
0 users

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


Attachments
Bug 43293: Add IDs to the Pay/Write off confirm buttons on paycollect.tt (2.45 KB, patch)
2026-08-13 14:09 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 43293: Add IDs to the Pay/Write off confirm buttons on paycollect.tt (2.50 KB, patch)
2026-08-13 16:34 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 43293: (follow-up) Make the same change to two other buttons (3.73 KB, patch)
2026-08-13 16:34 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 43293: Add IDs to the Pay/Write off confirm buttons on paycollect.tt (2.55 KB, patch)
2026-09-17 14:50 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 43293: (follow-up) Make the same change to two other buttons (3.78 KB, patch)
2026-09-17 14:50 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Renvoize (ashimema) 2026-08-13 14:08:52 UTC
The Confirm submit button on the combined pay/writeoff form in
members/paycollect.tt doesn't have an id, making it hard for local
customisations, hardware integrations (e.g. receipt printer triggers),
and automated tests to reliably target the pay action versus the
writeoff action - both render as the same markup with only the
value/hidden op field differing.

This patch adds id="paysubmit" and id="writeoffsubmit" to the two
branches of the existing type == 'WRITEOFF' conditional, matching the
existing op=cud-pay/op=cud-writeoff split right above it.

Test plan:
1. Go to a patron's Pay fines page and select multiple charges
2. Choose Pay - confirm the Confirm button has id="paysubmit"
3. Choose Write off - confirm the Confirm button has id="writeoffsubmit"
4. Confirm both flows still submit and behave exactly as before
Comment 1 Martin Renvoize (ashimema) 2026-08-13 14:09:04 UTC Comment hidden (obsolete)
Comment 2 Owen Leonard 2026-08-13 16:34:57 UTC
Created attachment 203635 [details] [review]
Bug 43293: Add IDs to the Pay/Write off confirm buttons on paycollect.tt

The Confirm submit button on the combined pay/writeoff form doesn't
have an id, making it hard for local customisations, hardware
integrations (e.g. receipt printer triggers), and automated tests to
reliably target the pay action versus the writeoff action - both
render as the same markup with only the value/hidden op field
differing.

Add id="paysubmit" and id="writeoffsubmit" to the two branches of
the existing type == 'WRITEOFF' conditional, matching the existing
op=cud-pay/op=cud-writeoff split right above it.

Test plan:
1) Go to a patron's Pay fines page and select multiple charges
2) Choose Pay - confirm the Confirm button has id="paysubmit"
3) Choose Write off - confirm the Confirm button has id="writeoffsubmit"
4) Confirm both flows still submit and behave exactly as before

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 3 Owen Leonard 2026-08-13 16:34:58 UTC
Created attachment 203636 [details] [review]
Bug 43293: (follow-up) Make the same change to two other buttons

There are also confirm buttons for pay_individual and
writeoff_individual.

This patch also makes a minor HTML correction: <div class="action">
should be <fieldset class="action">.
Comment 4 Martin Renvoize (ashimema) 2026-08-21 16:33:34 UTC
Thanks for the testing and follow-up Owen :)
Comment 5 Lucas Gass (lukeg) 2026-09-17 14:50:56 UTC
Created attachment 206150 [details] [review]
Bug 43293: Add IDs to the Pay/Write off confirm buttons on paycollect.tt

The Confirm submit button on the combined pay/writeoff form doesn't
have an id, making it hard for local customisations, hardware
integrations (e.g. receipt printer triggers), and automated tests to
reliably target the pay action versus the writeoff action - both
render as the same markup with only the value/hidden op field
differing.

Add id="paysubmit" and id="writeoffsubmit" to the two branches of
the existing type == 'WRITEOFF' conditional, matching the existing
op=cud-pay/op=cud-writeoff split right above it.

Test plan:
1) Go to a patron's Pay fines page and select multiple charges
2) Choose Pay - confirm the Confirm button has id="paysubmit"
3) Choose Write off - confirm the Confirm button has id="writeoffsubmit"
4) Confirm both flows still submit and behave exactly as before

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 6 Lucas Gass (lukeg) 2026-09-17 14:50:58 UTC
Created attachment 206151 [details] [review]
Bug 43293: (follow-up) Make the same change to two other buttons

There are also confirm buttons for pay_individual and
writeoff_individual.

This patch also makes a minor HTML correction: <div class="action">
should be <fieldset class="action">.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 7 Pedro Amorim (ammopt) 2026-11-02 12:30:15 UTC
Thanks everyone! Pushed to main for 26.11!