backoffice: use full context when rendering lateral blocks (#50793)
This commit is contained in:
parent
578ae09eb3
commit
1ea4716164
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue