BUGFIX Respecting $dontEscape in FormAction

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65335 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-11-05 23:21:50 +00:00
parent c172e823ea
commit fdeaececb1

View File

@ -77,10 +77,10 @@ class FormAction extends FormField {
'id' => $this->id(),
'type' => 'submit',
'name' => $this->action,
'value' => $this->attrTitle()
'value' => ($this->dontEscape) ? $this->Title() : $this->attrTitle()
);
$attributes['title'] = ($this->description) ? $this->description : $this->attrTitle();
$attributes['title'] = ($this->description) ? $this->description : ($this->dontEscape) ? $this->Title() : $this->attrTitle();
return $this->createTag('input', $attributes);
}