mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Reverted r76457
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@77676 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4ef5ab4661
commit
dcc273a8e3
@ -47,7 +47,7 @@ class TextareaField extends FormField {
|
|||||||
return $this->createTag(
|
return $this->createTag(
|
||||||
'span',
|
'span',
|
||||||
$attributes,
|
$attributes,
|
||||||
($this->value) ? Convert::raw2xml($this->value) : '<i>(' . _t('FormField.NONE', 'none') . ')</i>'
|
($this->value ? $this->value : '<i>(' . _t('FormField.NONE', 'none') . ')</i>')
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$attributes = array(
|
$attributes = array(
|
||||||
@ -60,7 +60,7 @@ class TextareaField extends FormField {
|
|||||||
|
|
||||||
if($this->disabled) $attributes['disabled'] = 'disabled';
|
if($this->disabled) $attributes['disabled'] = 'disabled';
|
||||||
|
|
||||||
return $this->createTag('textarea', $attributes, Convert::raw2xml($this->value));
|
return $this->createTag('textarea', $attributes, $this->value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user