Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yii2bootstrap
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
yii2bootstrap
Commits
a78d8b59
Commit
a78d8b59
authored
Mar 08, 2015
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue with wrongly assigned label in bootstrap
fixes #5984
parent
9db3d652
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
ActiveField.php
ActiveField.php
+3
-0
CHANGELOG.md
CHANGELOG.md
+1
-1
No files found.
ActiveField.php
View file @
a78d8b59
...
@@ -376,6 +376,9 @@ class ActiveField extends \yii\widgets\ActiveField
...
@@ -376,6 +376,9 @@ class ActiveField extends \yii\widgets\ActiveField
$label
=
Html
::
encode
(
$this
->
model
->
getAttributeLabel
(
$attribute
));
$label
=
Html
::
encode
(
$this
->
model
->
getAttributeLabel
(
$attribute
));
}
}
}
}
if
(
!
isset
(
$options
[
'for'
]))
{
$options
[
'for'
]
=
Html
::
getInputId
(
$this
->
model
,
$this
->
attribute
);
}
$this
->
parts
[
'{beginLabel}'
]
=
Html
::
beginTag
(
'label'
,
$options
);
$this
->
parts
[
'{beginLabel}'
]
=
Html
::
beginTag
(
'label'
,
$options
);
$this
->
parts
[
'{endLabel}'
]
=
Html
::
endTag
(
'label'
);
$this
->
parts
[
'{endLabel}'
]
=
Html
::
endTag
(
'label'
);
$this
->
parts
[
'{labelTitle}'
]
=
$label
;
$this
->
parts
[
'{labelTitle}'
]
=
$label
;
...
...
CHANGELOG.md
View file @
a78d8b59
...
@@ -4,7 +4,7 @@ Yii Framework 2 bootstrap extension Change Log
...
@@ -4,7 +4,7 @@ Yii Framework 2 bootstrap extension Change Log
2.
0.4 under development
2.
0.4 under development
-----------------------
-----------------------
-
no changes in this release.
-
Bug #5984:
`yii\bootstrap\Activefield::checkbox()`
caused browser to link label to the wrong input (cebe)
2.0.3 March 01, 2015
2.0.3 March 01, 2015
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment