From c1e62798f1269080c190dd3956ece93e42cf11f1 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Joonas Kylmälä Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../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.39.5