From 33dc6610cdbcfdbe1786b7c00745a84e71cde552 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 Content-Type: text/plain; charset=utf-8 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 --- 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.11.0