]> git.koha-community.org Git - koha.git/commit
Bug 37254: Fix clearing of dropdown values on circulation rules
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Thu, 4 Jul 2024 12:04:42 +0000 (15:04 +0300)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 11 Sep 2024 16:15:03 +0000 (16:15 +0000)
commitd0cb0ff57b306c7a9b67c38a41cb37230b0ea175
treec215b5c064db076f329047b052fe44c35ab5e8fd
parentab51747dcc8b9a14d73e0efe4763937763f7f622
Bug 37254: Fix clearing of dropdown values on circulation rules

When one tries to clear the rule they are editing in circulation
rules page via "Clear" button, dropdown selectors aren't populated
with default value (first on the list).

To reproduce:
1. Select a rule to edit.
2. Press "Clear" button to return edit rows values back to default values.
=> Values in dropdowns aren't set back as default, instead they have
same values as rule you edited before pressing "Clear".
3. Apply this patch.
4. Select rule to edit, then press "Clear".
=> Dropdowns now have default values.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit f1f08f92c52dc92eed71110f1c4d7711148c8b5c)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt