Koha/members
Emmi Takkinen 70fc698899
Bug 26558: Make guarantor information persist despite an error
When one tries to create an account with patron guarantor and
error occurs (already used username, wrong age etc.), guarantor
information is lost. This patch always saves added patron
guarantor information to the template param new_guarantors.

To test:
1. Create a new account but cause an error that will keep the
account from saving (enter the wrong age for a category or
give the patron a username that's already being used).
2. Search for and select a guarantor.
3. Try to save the account and wait for the "The following
fields are wrong. Please fix them." message.
=> Note that the guarantor information is gone and you need
to search for and select the guarantor again.
4. Apply this patch.
5. Repeat steps 1.-3.
=> Note that guarantor information hasn't been lost.

This patch also removes code block from duplicate patron
check because we now save param new_guarantors even if
error doesn't occur.

To test:
1. Create a new account but cause a duplicate patron error.
2. Search for and select a guarantor.
3. Try to save the account.
=> Guarantor information should persist.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-11 12:13:05 -03:00
..
accountline-details.pl
alert-subscriptions.pl Bug 28130: (QA follow-up) Tidy 2023-10-11 10:31:39 -03:00
apikeys.pl
boraccount.pl Bug 34731: Don't call SendQueuedMessages if message_id is bad 2023-09-12 09:44:59 -03:00
cancel-charge.pl
default_messageprefs.pl
deletemem.pl
discharge.pl
discharges.pl
files.pl
holdshistory.pl
housebound.pl
ill-requests.pl
mancredit.pl
maninvoice.pl
member-flags.pl
member-password.pl
member.pl Bug 34094: Use DefaultPatronSearchMethod consistently 2023-07-03 14:51:37 -03:00
memberentry.pl Bug 26558: Make guarantor information persist despite an error 2023-10-11 12:13:05 -03:00
members-home.pl
members-update-do.pl
members-update.pl
merge-patrons.pl
mod_debarment.pl
moremember.pl Bug 33271: Add collective owing message to moremember page 2023-07-03 14:51:41 -03:00
notices.pl
patronimage.pl
pay.pl Bug 34870: Perform UTF8 encoding before redirection 2023-10-04 11:08:27 -04:00
paycollect.pl
print_overdues.pl
printfeercpt.pl
printinvoice.pl
printnotice.pl
printslip.pl Bug 33010: Do not filter checkins with logged in patrons branch in printslip.pl 2023-05-18 11:35:11 -03:00
purchase-suggestions.pl
readingrec.pl Bug 33948: Replace GetAllIssues with Koha::Checkouts - staff 2023-09-22 12:35:49 -03:00
recallshistory.pl
routing-lists.pl
search.pl
setstatus.pl
statistics.pl
summary-print.pl
two_factor_auth.pl
update-child.pl