https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44237 Bug ID: 44237 Summary: System preferences with class: multiple incorrectly select the option with value 0 when the database value is empty Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Staff interface Assignee: koha-bugs@lists.koha-community.org Reporter: hammat.wele@inlibro.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com Target Milestone: --- When a system preference is defined with class: multiple and uses choices, an empty database value causes the option with value 0 to be automatically selected in the staff interface, even though no value is stored in the database. To reproduce 1. Open the DefaultLongOverduePatronCategories system preference 2. Ensure that no option is selected 3. Go to Administration > Patron categories 4. Add a new patron category with the following details: - Category code: 0 - Description: CategorieTest - In months: 2 - Category type: Adult 5. Return to the DefaultLongOverduePatronCategories system preference ==> CategorieTest is automatically selected 6. Deselect CategorieTest and save the preference 7. Reload the page ==> CategorieTest is still selected -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.