Bug 24113: guarantor info lost when a duplicate is found
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 26 Nov 2019 15:23:36 +0000 (10:23 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 27 Nov 2019 07:51:04 +0000 (07:51 +0000)
commit7f6f4f3c687cf287ac19a6035f11c63b7a66ade8
tree743c58a8c2e2926ef953a3dc455255901969ee02
parent067403e437803fd6a6c28571b491da3a231c67c1
Bug 24113: guarantor info lost when a duplicate is found

When a patron is created with a guarantor but a duplicate is found (or any other warnings I guess) the guarantor's info are lost.

This patch improves on previous functionality by retaining the select guarantor relationship as well.

Test Plan:
1) Create a new child with a name already used, add a guarantor
2) Attempt to save, no the guarantor is not shown when the editor is redisplayed
3) Apply this patch
4) Restart all the things!
5) Repeat 1
6) Note the guarantor is retained and the relationship is as well!

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
koha-tmpl/intranet-tmpl/prog/js/members.js
members/memberentry.pl