From e0b9d98827fa616f622e296254259ad475b742a2 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 22 Mar 2019 10:49:03 +0000 Subject: [PATCH] Bug 12159: (QA follow-up) Rename relation in Patron::Attributes It seems that we do not need the extra belongs_to in the schema result files if we rename the relation to code. Test plan: Run t/db_dependent/Koha/Patrons.t Run t/db_dependent/Koha/Patron/Attributes.t Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- Koha/Patron/Attributes.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Patron/Attributes.pm b/Koha/Patron/Attributes.pm index 1bbd35b5a1..514b1d3288 100644 --- a/Koha/Patron/Attributes.pm +++ b/Koha/Patron/Attributes.pm @@ -56,7 +56,7 @@ sub search { $branchcode ? { join => { - 'borrower_attribute_types' => 'borrower_attribute_types_branches' + 'code' => 'borrower_attribute_types_branches' }, } : {}; $attributes //= {}; -- 2.39.5