From d0b450a649d980e85cb4a2811763a77ad948b169 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 14 Jan 2019 08:04:51 -0300 Subject: [PATCH] Bug 22125: branches.pickup_location should be flagged as boolean This trivial patch just marks the mentioned column as a boolean. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Josef Moravec https://bugs.koha-community.org/show_bug.cgi?id=16497 Signed-off-by: Kyle M Hall Signed-off-by: Nick Clemens (cherry picked from commit 95ce61fd3e2c7f41d14e570da3bb8bf05373c65e) Signed-off-by: Martin Renvoize (cherry picked from commit 92cd2f8ca6ee06a05d2b6511ad75533bbf619773) Signed-off-by: Lucas Gass --- Koha/Schema/Result/Branch.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index ea010acafe..c34af0bcc3 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -627,8 +627,9 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-09 10:38:33 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nKWRDScCAwZUDrRhm1kYMA - -# You can replace this text with custom code or comments, and it will be preserved on regeneration +__PACKAGE__->add_columns( + '+pickup_location' => { is_boolean => 1 } +); sub koha_objects_class { 'Koha::Libraries'; -- 2.39.5