]> git.koha-community.org Git - koha.git/commit
Bug 34585: Add data-code attribute to chargeperiod_charge_at selector
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Tue, 22 Aug 2023 10:45:27 +0000 (13:45 +0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 16 Aug 2024 15:33:54 +0000 (17:33 +0200)
commit2ca65e0a06bff5b0b1c395874fca431e915c11c1
tree853d82d0d18a120f53f05d0a8ca9e703a4284d77
parentf121beb6894118621350901865c9e9c7adb7bde3
Bug 34585: Add data-code attribute to chargeperiod_charge_at selector

When one tries to edit circulation rule "When to charge"
columns value is always set as "End of interval". This patch adds
data-code attribute to chargeperiod_charge_at selector
to define existing rules value.

To reproduce:
1. Navigate to Circulation and fine rules page.
2. Find or create a rule with a "When to charge" value set as
"Start of interval".
3. Edit rule.
=> Note that "When to charge" value is now "End of interval",
while as the other values should be copied as they were.
4. Apply this patch.
5. Edit rule again.
=> "When to charge" should now be copied correctly.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt