]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 25 Oct 2024 16:43:19 +0000 (16:43 +0000)
commit86fc6301a7f6b021e24b50e22fb47a27c7bfefe1
tree46a79aaf76cfe03a74facc8a55cecf74fbaa6453
parentde5cf911bb68f9217982f8163b2f72a14d9f6432
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>
(cherry picked from commit 2ca65e0a06bff5b0b1c395874fca431e915c11c1)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt