[Koha-bugs] [Bug 32675] 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
Thu Jan 19 18:23:13 CET 2023


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

Lucas Gass <lucas at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #145404|0                           |1
        is obsolete|                            |

--- Comment #3 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 145490
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=145490&action=edit
Bug 32675: Cannot add a guarantor when there is a single quote in the guarantor
attributes

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

Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

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


More information about the Koha-bugs mailing list