Merge pull request #623 from creative-commoners/pulls/4.2/fix-email-preview-link-for-ss36

FIX Preview recipient email link for SS 3.6
This commit is contained in:
Franco Springveldt 2017-06-26 14:30:35 +12:00 committed by GitHub
commit edcbb2175a

View File

@ -228,7 +228,10 @@ class UserDefinedForm_EmailRecipient extends DataObject
if (!empty($this->EmailTemplate)) {
$preview = sprintf(
'<p><a href="%s" target="_blank" class="ss-ui-button">%s</a></p><em>%s</em>',
"admin/pages/edit/EditForm/field/EmailRecipients/item/{$this->ID}/preview",
Controller::join_links(
singleton('CMSPageEditController')->getEditForm()->FormAction(),
"field/EmailRecipients/item/{$this->ID}/preview"
),
_t('UserDefinedForm.PREVIEW_EMAIL', 'Preview email'),
_t('UserDefinedForm.PREVIEW_EMAIL_DESCRIPTION', 'Note: Unsaved changes will not appear in the preview.')
);