Bug 27450: Remove password from the mandatory fields when editing details
When a patron edit their personal details at the OPAC, the password must be removed from the mandatory fields Test plan: 0 - Don't apply the patch 1 - Set PatronSelfRegistrationBorrowerMandatoryField to require password 2 - Create or sign in as a patron on the opac 3 - Click 'Your personal details' 4 - Attempt to edit 5 - Save changes => They are rejected because not all required fields are populated 6 - Apply the patch 7 - Repeat 3 to 5 => details are saved successfully 8 - Test the self registration feature and confirm that the password is required Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit4b2c284092) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit06c47d8f5b) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> (cherry picked from commitaf56d2bd59) Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
parent
4f4cddebd7
commit
9c60908157
|
|
@ -250,7 +250,7 @@ elsif ( $action eq 'update' ) {
|
|||
my %borrower = ParseCgiForBorrower($cgi);
|
||||
$borrower{borrowernumber} = $borrowernumber;
|
||||
|
||||
my @empty_mandatory_fields =
|
||||
my @empty_mandatory_fields = grep { $_ ne 'password' } # password is not required when editing personal details
|
||||
CheckMandatoryFields( \%borrower, $action );
|
||||
my $invalidformfields = CheckForInvalidFields(\%borrower);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue