]> git.koha-community.org Git - koha.git/commit
Bug 31373: Add INCLUDE_PATH to notice validation
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 16 Aug 2022 16:08:40 +0000 (17:08 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 16 Sep 2022 14:03:04 +0000 (11:03 -0300)
commit3df1672eb382b958e8febab1d722a1fc94d5a8c6
tree461d0f8d3e7a0a37c6316e966e091bc071500cd3
parent4b4b8b9d54b02f98cf7b1bc70dada7d501b1d424
Bug 31373: Add INCLUDE_PATH to notice validation

This is a follow-up to bug 31211. It adds the same INCLUDE_PATH
variables as C4::Templates adds during processing to prevent false
failures.

Test plan
1) Add an INCLUDE to any valid notice, for example:
   [% INCLUDE 'patron-title.inc' patron => patron %]
2) Save and continue
3) Confirm you are faced with a validation error complaining that
   the include file cannot be found
4) Apply this patch
5) Confirm that the reported error has dissapeared

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
tools/letter.pl