misc: don't advertise legacy variables in send email/sms actions (#26070)
This commit is contained in:
parent
3464f6937e
commit
0834c95535
|
@ -2255,8 +2255,7 @@ class SendmailWorkflowStatusItem(WorkflowStatusItem):
|
|||
if 'body' in parameters:
|
||||
form.add(TextWidget, '%sbody' % prefix, title=_('Body'),
|
||||
value=self.body, cols=80, rows=10,
|
||||
validation_function=ComputedExpressionWidget.validate_template,
|
||||
hint=_('Available variables: url, url_status, details, name, number, comment, field_NAME'))
|
||||
validation_function=ComputedExpressionWidget.validate_template)
|
||||
|
||||
if 'attachments' in parameters:
|
||||
attachments_options, attachments = self.get_attachments_options()
|
||||
|
@ -2476,8 +2475,7 @@ class SendSMSWorkflowStatusItem(WorkflowStatusItem):
|
|||
value=self.to, add_element_label=_('Add Number'),
|
||||
element_kwargs = {'render_br': False})
|
||||
if 'body' in parameters:
|
||||
form.add(TextWidget, '%sbody' % prefix, title=_('Body'), value=self.body, cols=80, rows=10,
|
||||
hint = _('Available variables: url, url_status, details, name, number, comment, field_NAME'))
|
||||
form.add(TextWidget, '%sbody' % prefix, title=_('Body'), value=self.body, cols=80, rows=10)
|
||||
|
||||
def perform(self, formdata):
|
||||
if not self.is_available():
|
||||
|
|
Loading…
Reference in New Issue