mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00: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()
|
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(
|
return $this->customise(new ArrayData(array(
|
||||||
'Body' => $this->record->getEmailBodyContent(),
|
'Body' => $this->record->getEmailBodyContent(),
|
||||||
'HideFormData' => $this->record->HideFormData,
|
'HideFormData' => $this->record->HideFormData,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user