Adding fix for #2689, fixes issue when using FormHelper::submitImage with Security Component enabled

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5252 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-06-06 18:54:45 +00:00
parent 3ed6780ac4
commit f9a40f312f

View file

@ -241,6 +241,9 @@ class FormHelper extends AppHelper {
if(isset($submit)) {
$out .= $this->submit($submit, $submitOptions);
} elseif(isset($this->params['_Token']) && !empty($this->params['_Token']) && !empty($this->fields)) {
$out .= $this->secure($this->fields);
$this->fields = array();
}
$out .= $this->Html->tags['formend'];
return $this->output($out);