Bug 8025

Summary: Patron attribute not selected if value is zero
Product: Koha Reporter: Adrien SAURAT <adrien.saurat>
Component: PatronsAssignee: Adrien SAURAT <adrien.saurat>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P5 - low CC: chris, gmcharlt, jonathan.druart, paul.poulain
Version: 3.6   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: proposed patch #1
[SIGNED-OFF] Bug 8025: corrects the return of a zero value for authorised values

Description Adrien SAURAT 2012-04-30 07:43:25 UTC
TEST PLAN

1) If it doesn't exist, create an authorised value "YES_NO" with the following values :
value 0 for "NO"
value 1 for "YES"

2) Create a patron attribute using this authorised value.

3) Edit a patron and setup this new attribute for him.
If you select YES, that's fine.
If you select NO, it seems ok at first after validation, but if you come back on the editing page, the select box won't have its "selected" status on the "NO" option. Instead, the default empty line is selected.
If you don't notice this and leave everything as it is, you'll reset your attribute.
Comment 1 Adrien SAURAT 2012-04-30 08:08:07 UTC Comment hidden (obsolete)
Comment 2 Owen Leonard 2012-05-01 19:32:14 UTC
Created attachment 9385 [details] [review]
[SIGNED-OFF] Bug 8025: corrects the return of a zero value for authorised values

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 3 Jonathan Druart 2012-05-03 14:18:23 UTC
QA Comment: 
If an authorised value equal 0, it can not be selected.
This patch fix this problem.
Mark as Passed QA.
Comment 4 Jared Camins-Esakov 2012-06-14 11:48:08 UTC
This patch will be in 3.6.6.