Bug 34813 - Passing empty array from pl result in empty string in tt
Summary: Passing empty array from pl result in empty string in tt
Status: In Discussion
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-18 09:46 UTC by Jonathan Druart
Modified: 2023-10-14 14:35 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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