[Koha-bugs] [Bug 35964] New: User cannot update their account if a column in PatronSelfModificationMandatoryField is also in PatronSelfRegistrationBorrowerUnwantedField

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 31 16:55:41 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35964

            Bug ID: 35964
           Summary: User cannot update their account if a column in
                    PatronSelfModificationMandatoryField is also in
                    PatronSelfRegistrationBorrowerUnwantedField
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

subroutine ParseCgiForBorrower is used in both self-reg and
self-modification,however,it always removes the unwanted fields in
PatronSelfRegistrationBorrowerUnwantedField

564     delete $borrower{$_} for split( /\s*\|\s*/,
C4::Context->preference('PatronSelfRegistrationBorrowerUnwantedField') || q{}
);

To recreate:
1 - Add 'fax' to PatronSelfRegistrationBorrowerUnwantedField
2 - Add 'fax' to PatronSelfModificationMandatoryField
3 - Self register on the OPAC, note there is no 'fax' field
4 - Sign in as the new borrower
5 - Attempt to edit, note 'fax' is required, fill it
6 - Save the form - 'you are missing a required field'
7 - Remove 'fax' from PatronSelfRegistrationBorrowerUnwantedField
8 - Save the form again, now it works

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list