mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
c172e823ea
commit
fdeaececb1
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user