workflows: don't fail on incomplete global anchor date template (#52785)
This commit is contained in:
parent
a407b21008
commit
5539d1997f
|
@ -1294,7 +1294,7 @@ class WorkflowGlobalActionTimeoutTrigger(WorkflowGlobalActionTrigger):
|
|||
anchor_date = evolution.time
|
||||
else:
|
||||
break
|
||||
elif self.anchor == 'template':
|
||||
elif self.anchor == 'template' and self.anchor_template:
|
||||
variables = get_publisher().substitutions.get_context_variables(mode='lazy')
|
||||
anchor_date = Template(self.anchor_template, autoescape=False).render(variables)
|
||||
elif self.anchor == 'python':
|
||||
|
|
Loading…
Reference in New Issue