From 1d1b3d45683a2e2a27c01ea93c33d633b6810de2 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 --- 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 e88e72551c..f97a23a85d 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1896,7 +1896,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 5164cb2858..227bc40419 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.30.2