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

            Bug ID: 37528
           Summary: Using borrowerRelationship while guarantor
                    relationship is unchecked from BorrowerMandatoryField
                    results in error
 Change sponsored?: ---
           Product: Koha
           Version: 24.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Patrons
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

Before 24.05 having values in borrowerRelationship made the guarantor
relationship field required in patron page. Now one needs to check the
relationship option from BorrowerMandatoryField settings. If borrower
relationships are used but the relationship is not set up as required field, it
is possible to save a patron with the empty option from gurantor relationship
drop down selector. This will result in an internal service error. Despite the
error, the new patron will be saved, but the guarantor information is lost in
the process, as it wasn't valid.


To replicate:

Have at least one option in borrowerRelationship
Have the relationship field unchecked from BorrowerMandatoryFields

1. Create or select an existing patron in category that can be a guarantee.
2. Select a guarantor but leave the relationship blank
3. Fill in the other required information if not present yet.
4. Try to save the patron.
5. Notice an error page.
6. Check the patron and note that the new patron or changes to existing one
were saved without the new guarantor information.


Also, I'd like to add that when adding a new guarantee for an existing patron,
the hint text for required field doesn't show correctly with the mandatory
field setting. It will show 'required field' when it's UNchecked from mandatory
fields, and doesn't show it when it's checked. When creating a new patron from
scratch or editing an existing guarantee patron, the 'required field' text
works correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to