Bug 22910: Do not copy unique patron attributes to duplicated patron
authorPasi Kallinen <pasi.kallinen@koha-suomi.fi>
Wed, 29 May 2019 06:20:43 +0000 (09:20 +0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 6 Jun 2019 15:03:26 +0000 (16:03 +0100)
commitf3358e97c8a1f9edf1c4de6dea46f70366237699
treeef22c1c8097028bd1ad53923e9ccbc82cdcb3f7d
parent65de22a6ef928bd6074e9a4d6a1e1351d0e1de9b
Bug 22910: Do not copy unique patron attributes to duplicated patron

When creating a new patron by duplicating another, all of the patron
attributes are also copied into the form. Some of those value may be
unique, so don't copy those.

1) Create patron attribute types, one with "unique identifier", one without.
2) Create or a patron so it has values in both of those attributes.
3) Duplicate the patron
4) The edit form should retain the values from the "original" patron.
5) Apply patch.
6) Duplicate the patron - this time the attributes with unique values
   are cleared.

Signed-off-by: Pasi Kallinen <pasi.kallinen@koha-suomi.fi>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
members/memberentry.pl