From 0e61309e701ff6caf839411a8d46b9fe1151d4fd Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 10 Sep 2021 07:39:40 +0000 Subject: [PATCH] Bug 28992: Resolve warning on BIG_LOOP Content-Type: text/plain; charset=utf-8 Argument "" isn't numeric in numeric gt (>) at /usr/share/koha/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/ addbiblio.tt line 896. Came across it when testing 28608. Could have been a QA follow-up. Test plan: If you run QA tools on this patch, you should see the warning only when processing files before patches. Signed-off-by: Marcel de Rooy --- .../intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index 00c6767d1a..7cc0a94afd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -881,7 +881,7 @@ function PopupMARCFieldDoc(field) { [% END %] [% END # /UNLESS circborrowernumber %]
- [% IF ( BIG_LOOP.size > 1 ) %] + [% IF ( BIG_LOOP && BIG_LOOP.size > 1 ) %]
    [%- FOREACH BIG_LOO IN BIG_LOOP -%] [% IF loop.first %] -- 2.20.1