mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
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:
parent
ca92008260
commit
2131b074f6
1 changed files with 2 additions and 2 deletions
|
@ -673,8 +673,8 @@ class FormHelper extends AppHelper {
|
||||||
|
|
||||||
trigger_error(__("Don't use me yet"), E_USER_ERROR);
|
trigger_error(__("Don't use me yet"), E_USER_ERROR);
|
||||||
if (isset($options['name'])) {
|
if (isset($options['name'])) {
|
||||||
if (strpos($options['name'], "/") !== false) {
|
if (strpos($options['name'], "/") !== false || strpos($options['name'], ".") !== false) {
|
||||||
if ($this->fieldValue($options['name'])) {
|
if ($this->__value($options['name'])) {
|
||||||
$options['checked'] = 'checked';
|
$options['checked'] = 'checked';
|
||||||
}
|
}
|
||||||
$this->setFieldName($options['name']);
|
$this->setFieldName($options['name']);
|
||||||
|
|
Loading…
Add table
Reference in a new issue