Koha/koha-tmpl/intranet-tmpl/prog/en
Jonathan Druart 3de89b98ce
Bug 23095: Correctly display circulation rules (0 vs undef)
From the following commit:
  commit d1303ca834
  Bug 18925: (follow-up) Fix null/empty behavior

The global test must have been adjusted as well to catch empty strings.

Actually we are expecting the plugin to return undef but the template variable contains an empty string.

So the test should only be [% IF var != '' %] instead of [% IF var.defined && var != '' %]
but I prefer to keep it as it for now.

Test plan:
In the section "Default checkout, hold policy by patron category"
Set total checkouts = blank
    total on-site checkouts = blank
    total holds = 0
Save
=> Without this patch the line will not appear
=> With this patch applied there must be "unlimited, unlimited, 0"

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-06-13 12:03:00 +01:00
..
data
includes Bug 13094: Make it easy to hide 'Cancel all' button on holds over report 2019-06-11 10:21:12 +01:00
modules Bug 23095: Correctly display circulation rules (0 vs undef) 2019-06-13 12:03:00 +01:00
xslt Bug 20986: (follow-up) Avoid br tags, but allow for line breaks to be added easily with CSS 2019-06-06 15:47:58 +01:00
columns.def