From 2aec206e2382b1a16cd0947ce146fe585ebfa1d8 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 (cherry picked from commit c1e62798f1269080c190dd3956ece93e42cf11f1) Signed-off-by: Fridolin Somers --- .../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 32aeac779d..3278a6a123 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -651,7 +651,7 @@ [% 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