Update UserFormRecipientItemRequest::preview to use theme-templates

Fixes #556
This commit is contained in:
Michael van Schaik 2017-03-14 06:10:27 +01:00 committed by Robbie Averill
parent 802c750a77
commit dcc821f3c6

View File

@ -20,6 +20,9 @@ class UserFormRecipientItemRequest extends GridFieldDetailForm_ItemRequest
*/
public function preview()
{
// Enable theme for preview (may be needed for Shortcodes)
Config::inst()->update('SSViewer', 'theme_enabled', true);
return $this->customise(new ArrayData(array(
'Body' => $this->record->getEmailBodyContent(),
'HideFormData' => $this->record->HideFormData,