mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-03 06:38:51 +02:00
Merge remote-tracking branch 'origin/3.1'
This commit is contained in:
commit
8f3c0b57ba
@ -95,7 +95,7 @@ class HtmlEditorField extends TextareaField {
|
||||
}
|
||||
|
||||
public function saveInto(DataObjectInterface $record) {
|
||||
if($record->escapeTypeForField($this->name) != 'xml') {
|
||||
if($record->hasField($this->name) && $record->escapeTypeForField($this->name) != 'xml') {
|
||||
throw new Exception (
|
||||
'HtmlEditorField->saveInto(): This field should save into a HTMLText or HTMLVarchar field.'
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user