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.
Created attachment 9363 [details] [review]
proposed patch #1
The problem was spotted on patrons, but can be present on other pages too, as it comes from the GetAuthorisedValues function in Koha.pm
Created attachment 9385 [details] [review]
[SIGNED-OFF] Bug 8025: corrects the return of a zero value for authorised values
Signed-off-by: Owen Leonard <firstname.lastname@example.org>
If an authorised value equal 0, it can not be selected.
This patch fix this problem.
Mark as Passed QA.
This patch will be in 3.6.6.