From cf57e2f9184b49ea4e5e0d318d48247c2b523f3c Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 1 Nov 2023 15:53:51 -0300 Subject: [PATCH] Bug 26170: DBIC booleans Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/Borrower.pm | 9 +++++---- Koha/Schema/Result/Deletedborrower.pm | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index b1dd974a7e..ff7e89e183 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -2161,11 +2161,12 @@ __PACKAGE__->has_many( ); __PACKAGE__->add_columns( - '+anonymized' => { is_boolean => 1 }, - '+lost' => { is_boolean => 1 }, - '+gonenoaddress' => { is_boolean => 1 }, + '+anonymized' => { is_boolean => 1 }, + '+autorenew_checkouts' => { is_boolean => 1 }, + '+gonenoaddress' => { is_boolean => 1 }, + '+lost' => { is_boolean => 1 }, '+privacy_guarantor_fines' => { is_boolean => 1 }, - '+autorenew_checkouts' => { is_boolean => 1 } + '+protected' => { is_boolean => 1 }, ); sub koha_objects_class { diff --git a/Koha/Schema/Result/Deletedborrower.pm b/Koha/Schema/Result/Deletedborrower.pm index be5e6970dc..866b8b3537 100644 --- a/Koha/Schema/Result/Deletedborrower.pm +++ b/Koha/Schema/Result/Deletedborrower.pm @@ -852,11 +852,12 @@ __PACKAGE__->add_columns( # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WdNGUFdglTb3Heu+VjLWFw __PACKAGE__->add_columns( - '+anonymized' => { is_boolean => 1 }, - '+lost' => { is_boolean => 1 }, - '+gonenoaddress' => { is_boolean => 1 }, + '+anonymized' => { is_boolean => 1 }, + '+autorenew_checkouts' => { is_boolean => 1 }, + '+gonenoaddress' => { is_boolean => 1 }, + '+lost' => { is_boolean => 1 }, '+privacy_guarantor_fines' => { is_boolean => 1 }, - '+autorenew_checkouts' => { is_boolean => 1 } + '+protected' => { is_boolean => 1 }, ); sub koha_objects_class { -- 2.39.5