From 2ce42d275548705b632c9e3b15070cbed2b4cf32 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 7 Dec 2022 15:59:21 +0100 Subject: [PATCH] Bug 26573: Remove remaining reference to category_code column --- Koha/Patron.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 96a72a393a..3b2fab2b62 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1742,11 +1742,11 @@ sub extended_attributes { Koha::Patron::Attribute::Types->search( { mandatory => 1, - category_code => [ undef, $self->categorycode ], + 'borrower_attribute_types_categories.categorycode' => [ undef, $self->categorycode ], 'borrower_attribute_types_branches.b_branchcode' => undef, }, - { join => 'borrower_attribute_types_branches' } + { join => ['borrower_attribute_types_branches', 'borrower_attribute_types_categories'] } )->get_column('code'); for my $type ( @required_attribute_types ) { Koha::Exceptions::Patron::MissingMandatoryExtendedAttribute->throw( -- 2.30.2