BUGFIX: fix titles and labels being escaped multiple times resulting in html entities displaying in submission pages, export and emails. Fixes http://open.silverstripe.org/ticket/6787
This commit is contained in:
parent
2dac28ade9
commit
2ea28495f7
|
@ -659,11 +659,10 @@ JS
|
|||
|
||||
if(!$field->showInReports()) continue;
|
||||
|
||||
// create a new submitted form field.
|
||||
$submittedField = $field->getSubmittedFormField();
|
||||
$submittedField->ParentID = $submittedForm->ID;
|
||||
$submittedField->Name = $field->Name;
|
||||
$submittedField->Title = $field->Title;
|
||||
$submittedField->Title = $field->getField('Title');
|
||||
|
||||
// save the value from the data
|
||||
if($field->hasMethod('getValueFromData')) {
|
||||
|
@ -696,7 +695,7 @@ JS
|
|||
}
|
||||
|
||||
if(!$this->DisableSaveSubmissions) $submittedField->write();
|
||||
|
||||
|
||||
$submittedFields->push($submittedField);
|
||||
}
|
||||
|
||||
|
|
|
@ -25,6 +25,6 @@ class SubmittedFormField extends DataObject {
|
|||
* @return String
|
||||
*/
|
||||
function getFormattedValue() {
|
||||
return nl2br($this->dbObject('Value')->RAW());
|
||||
return nl2br($this->dbObject('Value')->ATT());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue