Bug 35076 - Updating Patron Details from OPAC will result in error if patron has an email
Summary: Updating Patron Details from OPAC will result in error if patron has an email
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: 23.05
Hardware: All All
: P5 - low normal
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-17 11:49 UTC by Kelly McElligott
Modified: 2023-10-17 12:56 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kelly McElligott 2023-10-17 11:49:31 UTC
This issue seems to occur due to this: If a library has email as a mandatory field in the system preference, PatronSelfModificationMandatoryField

If a patron logs into their account, has an email attached to their account and tries to update any information (except for email)- they will receive an error saying that the email already exists in the database. 

Test Plan:
1. Log into Patron Account
2. Go to Patron Details
3 Ensure test patron has an email on their account
4. Change or update  or add a new data field, phone, address, etc.
5. Receive an error that states the email already exists in the database. 

If a library does not have email as mandatory if the sys pref stated above, this issue does not exist.
Comment 1 Owen Leonard 2023-10-17 12:11:44 UTC
I cannot reproduce this problem in master. Is it specific to 23.05?
Comment 2 Kelly McElligott 2023-10-17 12:56:21 UTC
I can't reproduce in 22.11 or master either. Must be specific to 23.05?