https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44245 --- Comment #1 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 212475 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212475&action=edit Bug 44245: Let batch patron modification set a value of 0 Bug 44245: Let batch patron modification set a value of 0 tools/modborrowers.pl only kept a posted value when it was true: $infos->{$field} = $value if $value; so "0" was dropped. Setting "Protected" to "No" (value 0) did nothing: a protected patron cannot be unprotected in batch. A street number, sort1 or sort2 of 0 was ignored the same way. A value is now kept when it is not empty. An empty field still leaves the patron's value as it is. Test plan: 1. Log in as a superlibrarian. Edit a patron, set Protected = Yes. 2. Tools > Batch patron modification, enter the patron's card number, Continue. Protected: No. Save. 3. The patron is still protected. 4. Apply the patch, restart Plack, repeat 2: the patron is no longer protected. Their other fields are unchanged. 5. Repeat 2 with Sort 1 = 0: Sort 1 is now 0 (before: unchanged). Sponsored-by: Koha Solutions -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.