]> 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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 9 Aug 2024 15:36:19 +0000 (17:36 +0200)
commitf1f08f92c52dc92eed71110f1c4d7711148c8b5c
treee3b2aa8c97d1116c69d78c6d2efff4b93e62f964
parentf5c839348091d129bb7100af2c9e64e486d0ea1d
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>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt