Bug 16504: (follow-up for bug 15163) Do not remove attributes of other patrons
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 13 May 2016 13:43:52 +0000 (14:43 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 16 Jun 2016 07:52:12 +0000 (09:52 +0200)
commitea598df62484d62db140f988002ae2cbcf16d98e
tree2d951718dd8bb4a6899e16eb2cff8b499f75bab5
parentfc2776a5c9ca3015b86de2db763de1c8fe59d249
Bug 16504: (follow-up for bug 15163) Do not remove attributes of other patrons

Simple patch for a silly error, this single line is going to fix a
critical bug.
If a patron attribute is limited to a library, all the values for that attributes
for every patrons will be deleted.

Test plan:
Create a patron attribute limited to a library
Set the the attribute for a patron
Set the the attribute for another patron
=> Without this patch applied, the attribute's value for the first
patron is deleted
=> With this patch applied, the 2 values exist in the DB after the
second edition

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit da94410ab5022c3bd97fba1878673149802db584)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 247bd55876a4e930934419070fc926a656a0d9d7)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/Members/Attributes.pm