Bug 29844: Fix selenium/administration_tasks.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 11 Feb 2022 07:54:27 +0000 (08:54 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 11 Feb 2022 19:11:39 +0000 (09:11 -1000)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt

index ca0a7fd..9b33d07 100644 (file)
                             [% FOREACH itemtypeloo IN itemtypeloop %]
                                 [% NEXT IF itemtypeloo.parent_type %]
                                 [% SET children = itemtypeloo.children_with_localization %]
-                                [% IF children %]
+                                [% IF children.count %]
                                     <optgroup label="[% itemtypeloo.translated_description | html %]">
                                         <option value="[% itemtypeloo.itemtype | html %]">[% itemtypeloo.translated_description | html %] (All)</option>
                                         [% FOREACH child IN children %]