https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30982 --- Comment #15 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- (In reply to Jonathan Druart from comment #14)
(In reply to Martin Renvoize from comment #13)
Created attachment 136715 [details] [review] [review] Bug 30982: Make code more re-usable
Shouldn't you call search_limited instead of search then?
We do so internally: https://git.koha-community.org/Koha-community/Koha/src/branch/master/Koha/RE... So $c->objects->search is calling a mojolicious helper method above.. as you can see it looks for the presence of a search_limited in the plural object and calls it in place of search if one is found. -- You are receiving this mail because: You are watching all bug changes.