Bug 5797

Summary: Correct damaged status not preselected if value is 0
Product: Koha Reporter: Owen Leonard <oleonard>
Component: CatalogingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: minor    
Priority: P5 - low CC: katrin.fischer, koha.sekjal
Version: Main   
Hardware: All   
OS: All   
URL: /cgi-bin/koha/catalogue/moredetail.pl?
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: screenshot of more detail page

Description Owen Leonard 2011-02-22 19:46:43 UTC
If you have two damaged statuses, "0 = Not damaged" and "1 = Damaged" all items will show as "Damaged" on moredetail.pl because the "selected" attribute isn't getting added when damaged = 0. The select will instead default to the first alphabetically.
Comment 1 Katrin Fischer 2012-02-22 06:12:43 UTC
Created attachment 7797 [details]
screenshot of more detail page

On current master the preselected value is "Choose". For lists like lost and damaged this means there is an additional empty entry for 0 values with no description for the authorized value. I am not sure this is the perfect solution, but the bug described by Owen is fixed, so closing this.