diff --git a/code/model/recipients/UserFormRecipientItemRequest.php b/code/model/recipients/UserFormRecipientItemRequest.php index d0e4aa9..171efb4 100644 --- a/code/model/recipients/UserFormRecipientItemRequest.php +++ b/code/model/recipients/UserFormRecipientItemRequest.php @@ -42,10 +42,10 @@ class UserFormRecipientItemRequest extends GridFieldDetailForm_ItemRequest foreach ($fields as $field) { $data->push(new ArrayData(array( - 'Name' => $field->Name, - 'Title' => $field->Title, - 'Value' => '$' . $field->Name, - 'FormattedValue' => '$' . $field->Name + 'Name' => $field->dbObject('Name'), + 'Title' => $field->dbObject('Title'), + 'Value' => DBField::create_field('Varchar', '$' . $field->Name), + 'FormattedValue' => DBField::create_field('Varchar', '$' . $field->Name) ))); }