From 306dc662f9a13b515aafcd199a91bd97c4c8aa0b Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 13 Apr 2022 17:07:55 -0300 Subject: [PATCH] Bug 30534: Remove guarantor_id attribute from the patron object This patch removes an attribute that was actually removed 3 years ago and causes an exception when trying to search for it. The API responses don't include it anyways. Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind Signed-off-by: Jonathan Druart Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall --- Koha/Patron.pm | 1 - api/v1/swagger/paths/patrons.yaml | 5 ----- 2 files changed, 6 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index cd17d175f2..2bc1998647 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1814,7 +1814,6 @@ sub to_api_mapping { emailpro => 'secondary_email', flags => undef, # permissions manipulation handled in /permissions gonenoaddress => 'incorrect_address', - guarantorid => 'guarantor_id', lastseen => 'last_seen', lost => 'patron_card_lost', opacnote => 'opac_notes', diff --git a/api/v1/swagger/paths/patrons.yaml b/api/v1/swagger/paths/patrons.yaml index b825bb8c9a..c72e6f8578 100644 --- a/api/v1/swagger/paths/patrons.yaml +++ b/api/v1/swagger/paths/patrons.yaml @@ -204,11 +204,6 @@ description: Filter search by restricted required: false type: boolean - - name: guarantor_id - in: query - description: Search on guarantor_id - required: false - type: string - name: staff_notes in: query description: Case insensitive search on staff_notes -- 2.39.5