From 2131b074f6877a00caa38fac39cae9d54f8ccdc9 Mon Sep 17 00:00:00 2001 From: "mariano.iglesias" Date: Wed, 9 May 2007 02:09:56 +0000 Subject: [PATCH] Correcting call to __value and using dot notation in button() git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5037 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/view/helpers/form.php b/cake/libs/view/helpers/form.php index 59ba33c6a..c46c42d5a 100644 --- a/cake/libs/view/helpers/form.php +++ b/cake/libs/view/helpers/form.php @@ -673,8 +673,8 @@ class FormHelper extends AppHelper { trigger_error(__("Don't use me yet"), E_USER_ERROR); if (isset($options['name'])) { - if (strpos($options['name'], "/") !== false) { - if ($this->fieldValue($options['name'])) { + if (strpos($options['name'], "/") !== false || strpos($options['name'], ".") !== false) { + if ($this->__value($options['name'])) { $options['checked'] = 'checked'; } $this->setFieldName($options['name']);