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
This commit is contained in:
mariano.iglesias 2007-05-09 02:09:56 +00:00
parent ca92008260
commit 2131b074f6

View file

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