From ecf556c60244efc0f4097ab68dacdf76651066f6 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 23 Sep 2025 20:01:17 +0000 Subject: [PATCH] Bug 26993: (follow-up) Fix template issue when last_returned_by_all returns 1 result --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index 655f0244a8b..c159c5f290a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -496,7 +496,7 @@ [% IF Koha.Preference('StoreLastBorrower') && Koha.Preference('StoreLastBorrower') > 0 %] [% SET all_borrowers = ITEM_DAT.object.last_returned_by_all %] - [% IF all_borrowers.size > 0 %] + [% IF all_borrowers.0 %]
  • Last returned by: [% FOREACH patron IN all_borrowers %] -- 2.39.5