Suppress loading of standard templates if one exists with a different name

Description

If a site customises standard templates (Invoice, Receipt etc), and uses a different report template name, running:

will load a duplicate instance. The existing instance will continue to be used, as the template with the lowest identifier is selected.

To limit the number of duplicates loaded, skip loading templates where there is an existing template for a lookup.documentTemplateType with a different filename, unless the lookup.documentTemplateType is one of:

  • act.*Form

  • act.*Letter

  • REPORT

  • SUB_REPORT

Note that this cannot prevent duplicate sub-reports being loaded, as these all are of type SUB_REPORT, and parent templates load them using expressions. E.g.: invoices load invoice items using:

Environment

None

Activity

Details

Assignee

Reporter

Components

Fix versions

Priority

Who's Looking?

Open Who's Looking?

Created October 6, 2021 at 12:20 AM
Updated August 6, 2024 at 12:30 AM
Who's Looking?