From fdeaececb1ebff503f0694e71a968ad4eb176238 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 5 Nov 2008 23:21:50 +0000 Subject: [PATCH] BUGFIX Respecting $dontEscape in FormAction git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65335 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/FormAction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/FormAction.php b/forms/FormAction.php index 68c85533f..882e94b00 100755 --- a/forms/FormAction.php +++ b/forms/FormAction.php @@ -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); }