From dea5eb100ce5966271d3f24f2837ba29029c939d Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 10 Sep 2019 15:09:20 -0300 Subject: [PATCH] Bug 20691: (QA follow-up) API-related fixes Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/Borrower.pm | 5 +++-- api/v1/swagger/definitions/patron.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index 335da4c7e9..ff22015989 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -1564,9 +1564,10 @@ __PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber"); # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lbMdmIHlRt+zayG5+Rq4/w __PACKAGE__->add_columns( - '+anonymized' => { is_boolean => 1 }, + '+anonymized' => { is_boolean => 1 }, '+lost' => { is_boolean => 1 }, - '+gonenoaddress' => { is_boolean => 1 } + '+gonenoaddress' => { is_boolean => 1 }, + '+privacy_guarantor_fines' => { is_boolean => 1 } ); sub koha_objects_class { diff --git a/api/v1/swagger/definitions/patron.json b/api/v1/swagger/definitions/patron.json index 80933957a1..06ed23b9ac 100644 --- a/api/v1/swagger/definitions/patron.json +++ b/api/v1/swagger/definitions/patron.json @@ -244,7 +244,7 @@ "description": "controls if relatives can see this patron's checkouts" }, "privacy_guarantor_fines": { - "type": "integer", + "type": "boolean", "description": "controls if relatives can see this patron's fines" }, "check_previous_checkout": { -- 2.23.0