Browse Source

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
mariano.iglesias 19 years ago
parent
commit
2131b074f6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cake/libs/view/helpers/form.php

+ 2 - 2
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']);