[Koha-bugs] [Bug 31610] When creating a guarantee, patron messaging preferences should be copied to this account from the category

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 29 14:32:59 CET 2024


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

--- Comment #2 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 161595
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161595&action=edit
Bug 31610: Set messaging preferences in the new guarantee form

On patron detail page, if the patron is an adult, there is a button "Add
guarantee". It takes you to the patron creation form. In this form one
of the "can be guarantee" category will be automatically selected, but
the messaging preferences will not be automatically set to the default
messaging preferences for this category.
This patch fixes that.

Test plan:
1. Make sure all the "can be guarantee" categories have default
   messaging preferences. The category dropdown list is not sorted so
   it's not always the same category that appear first and is
   automatically selected.
   Also make sure that preference borrowerRelationship is not empty
2. Find a patron whose category's type is Adult and go to its detail
   page
3. Click on "Add guarantee" in the toolbar
4. Verify that the messaging preferences are automatically set and match
   the selected category.

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


More information about the Koha-bugs mailing list