mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Update UserFormRecipientItemRequest::preview to use theme-templates
Fixes #556
This commit is contained in:
parent
802c750a77
commit
dcc821f3c6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user