backoffice: use full context when rendering lateral blocks (#50793)

This commit is contained in:
Frédéric Péters 2021-02-02 21:42:41 +01:00
parent 578ae09eb3
commit 1ea4716164
2 changed files with 2 additions and 2 deletions

View File

@ -437,7 +437,7 @@ class FormData(StorableObject):
return changed
def get_lateral_block(self):
context = self.get_substitution_variables()
context = get_publisher().substitutions.get_context_variables(mode='lazy')
context['formdef_id'] = self.formdef.id
if self.formdef.lateral_template is None:
new_value = None

View File

@ -560,7 +560,7 @@ class FormDef(StorableObject):
return '[formdef_id]-[form_number_raw]'
def get_submission_lateral_block(self):
context = self.get_substitution_variables()
context = get_publisher().substitutions.get_context_variables(mode='lazy')
if self.submission_lateral_template is None:
new_value = None
else: