From beecec2b591e219fca1b1d14ea285f30feaa5114 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 9 Nov 2023 10:09:20 -0300 Subject: [PATCH] Bug 34517: (QA follow-up) Standardize boolean attributes definition Signed-off-by: Tomas Cohen Arazi --- Koha/Schema/Result/BorrowerAttributeType.pm | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Koha/Schema/Result/BorrowerAttributeType.pm b/Koha/Schema/Result/BorrowerAttributeType.pm index 55ce803473..ad609f0a78 100644 --- a/Koha/Schema/Result/BorrowerAttributeType.pm +++ b/Koha/Schema/Result/BorrowerAttributeType.pm @@ -255,18 +255,9 @@ __PACKAGE__->has_many( __PACKAGE__->add_columns( '+keep_for_pseudonymization' => { is_boolean => 1 }, -); - -__PACKAGE__->add_columns( - '+mandatory' => { is_boolean => 1 }, -); - -__PACKAGE__->add_columns( - '+staff_searchable' => { is_boolean => 1 }, -); - -__PACKAGE__->add_columns( - '+searched_by_default' => { is_boolean => 1 }, + '+mandatory' => { is_boolean => 1 }, + '+searched_by_default' => { is_boolean => 1 }, + '+staff_searchable' => { is_boolean => 1 }, ); sub koha_object_class { -- 2.39.5