Bug 5161: Keep patron's attributes on warning/duplicate
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 21 Apr 2020 12:30:19 +0000 (14:30 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 27 Apr 2020 10:28:46 +0000 (11:28 +0100)
commit866c6850e07411b37aae15f00444802ef1919c1b
treed000ca05fb47454357f1dffaea81b95bc37a07cd
parent41873b21c894a4be1459b5ba1d93a28fa3b45ea4
Bug 5161: Keep patron's attributes on warning/duplicate

When a patron is added or modified and a warning appears (duplicate,
inconsistent data, etc.) the form lost the patron's attributes.

Test plan:
Create some attribute types for patrons
Create a new patron, use an userid that already exists and fill the attributes
=> You get a warning and the attributes are kept
Modify the userid and save again
Edit the same patron
Modify the attributes, as well as the userid (to get the duplicate warning)
=> You get a warning and the attributes are kept with the modified
values
Modify the userid and save again
=> The new values are saved
Edit the attributes from the detail page (so not with the full edit form)
Modify them and save
=> The new values are saved

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
members/memberentry.pl