[Koha-bugs] [Bug 32675] New: Cannot add a guarantor when there is a single quote in the guarantor attributes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 18 18:24:24 CET 2023


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

            Bug ID: 32675
           Summary: Cannot add a guarantor when there is a single quote in
                    the guarantor attributes
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Patrons
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: hammat.wele at inlibro.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

It's impossible to select a guarantor when there is a single quote in the
guarantor attributes.

This patch allows to add a guarantor even if there is a single quote in
guarantor attributes.

Test plan
1. Find two patrons:
  - Patron 1 = guarantee
  - Patron 2 = guarantor
2. In the patron 2 account, add a single quote in one of the "Alternate
address" or "Contact information" fields (like the "Address" field)
for example type «L'Aqueduc» in the field and save
3. Edit the patron 1 and click on "Add guarantor"
4. Search for the patron 2
5. Click on "Select"
  --> Nothing happens
6. Apply the patch
9. repeat step 3, 4 and 5
10. Now Patron 2 is added as guarantor

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


More information about the Koha-bugs mailing list