Bug 37254

Summary: Dropdown values not cleared after pressing clear in circulation rules
Product: Koha Reporter: Emmi Takkinen <emmi.takkinen>
Component: Fines and feesAssignee: Emmi Takkinen <emmi.takkinen>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 37254: Fix clearing of dropdown values on circulation rules

Description Emmi Takkinen 2024-07-04 10:11:40 UTC
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".
Comment 1 Emmi Takkinen 2024-07-04 12:09:31 UTC
Created attachment 168502 [details] [review]
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