[Koha-bugs] [Bug 18179] Koha::Objects->find should not be called in list context

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 4 16:04:28 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18179

--- Comment #28 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Marcel de Rooy from comment #26)
> Same include:
> 
> [%- IF borrower.category.category_type == 'I' %]
> 
> [%- IF category_type == 'I' %]
> 
> I am having the feeling that it should be borrower.category_type when I am
> looking at GetMember.

Yes, right.
I found 3 occurrences where borrower is passed to the template:
members/pay.pl:        borrower => $borrower,
members/paycollect.pl:    borrower      => $borrower,
members/routing-lists.pl:    borrower          => $borrower,

$borrower comes from GetMember.

And from 1 members/moremember.pl (Koha::Patron)
So the change does not make sense.
But it's a regression of bug 12461, should be fixed elsewhere.

Please have a look at bug 17829 to get rid of all these issues!!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list