Bug 34813

Summary: Passing empty array from pl result in empty string in tt
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: TemplatesAssignee: Bugs List <koha-bugs>
Status: In Discussion --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: martin.renvoize, nick, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Jonathan Druart 2023-09-18 09:46:23 UTC
See https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=155782

Back from holiday, might be a bit rusty, but this is a weird behaviour.
If you send test => [] from pl, [% test %] will display an empty string, and [% test.size %] won't display 0

We may need to check some occurrences of
  % git grep '\.size == 0' **/*.tt **/*.inc