Fix casting bug with email previews (#549)

This commit is contained in:
Loz Calver 2017-04-02 23:35:16 +01:00 committed by Damian Mooyman
parent 2f710d6518
commit bf391697fa

View File

@ -39,10 +39,10 @@ class UserFormRecipientItemRequest extends GridFieldDetailForm_ItemRequest {
foreach ($fields as $field) { foreach ($fields as $field) {
$data->push(new ArrayData(array( $data->push(new ArrayData(array(
'Name' => $field->Name, 'Name' => $field->dbObject('Name'),
'Title' => $field->Title, 'Title' => $field->dbObject('Title'),
'Value' => '$' . $field->Name, 'Value' => DBField::create_field('Varchar', '$' . $field->Name),
'FormattedValue' => '$' . $field->Name 'FormattedValue' => DBField::create_field('Varchar', '$' . $field->Name)
))); )));
} }