From 728d6b2cf9bb31040a18995d2fe37dddcde547d1 Mon Sep 17 00:00:00 2001 From: "a.chubar" Date: Fri, 13 Oct 2023 18:19:10 +0400 Subject: [PATCH] Fixed more than one collection of the same type causing compiler errors --- tpl/macro.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/macro.twig b/tpl/macro.twig index 04560bd..9c9a3c3 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -16,7 +16,7 @@ {% endmacro %} -{% macro decl_struct(o, allow_diffs = true, extra = '') %} +{% macro decl_struct(o, extra = '') %} {% set pkey_fields = token(o, 'table_pkey')|split(',') %} {% set pkey = o.fields|filter(f => f.name in pkey_fields ) %} @@ -110,7 +110,7 @@ public {{_self.struct_type(o)}} {{o.name}} {{_self.base_struct_class(o)}} } {%- endif -%} -{%- if has_token(o, 'diffable') and allow_diffs ~%} +{%- if has_token(o, 'diffable') ~%} {{_self.diffable_support(o)}} {%- endif -%}