Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
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
PSDI Army
yii2
Commits
226c9f22
Commit
226c9f22
authored
Dec 18, 2013
by
Jacob Morrison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with tabular input in ActiveField::radio and checkbox
parent
702cf513
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
ActiveField.php
framework/yii/widgets/ActiveField.php
+4
-2
No files found.
framework/CHANGELOG.md
View file @
226c9f22
...
...
@@ -12,6 +12,7 @@ Yii Framework 2 Change Log
-
Bug: Fixed
`Call to a member function registerAssetFiles() on a non-object`
in case of wrong
`sourcePath`
for an asset bundle (samdark)
-
Bug: Fixed incorrect event name for
`yii\jui\Spinner`
(samdark)
-
Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
-
Bug: Fixed issue with tabular input on ActiveField::radio() and ActiveField::checkbox() (jom)
-
Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
-
Enh #1406: DB Schema support for Oracle Database (p0larbeer, qiangxue)
-
Enh #1437: Added ListView::viewParams (qiangxue)
...
...
framework/yii/widgets/ActiveField.php
View file @
226c9f22
...
...
@@ -371,7 +371,8 @@ class ActiveField extends Component
{
if
(
$enclosedByLabel
)
{
if
(
!
isset
(
$options
[
'label'
]))
{
$options
[
'label'
]
=
Html
::
encode
(
$this
->
model
->
getAttributeLabel
(
$this
->
attribute
));
$attribute
=
Html
::
getAttributeName
(
$this
->
attribute
);
$options
[
'label'
]
=
Html
::
encode
(
$this
->
model
->
getAttributeLabel
(
$attribute
));
}
$this
->
parts
[
'{input}'
]
=
Html
::
activeRadio
(
$this
->
model
,
$this
->
attribute
,
$options
);
$this
->
parts
[
'{label}'
]
=
''
;
...
...
@@ -406,7 +407,8 @@ class ActiveField extends Component
{
if
(
$enclosedByLabel
)
{
if
(
!
isset
(
$options
[
'label'
]))
{
$options
[
'label'
]
=
Html
::
encode
(
$this
->
model
->
getAttributeLabel
(
$this
->
attribute
));
$attribute
=
Html
::
getAttributeName
(
$this
->
attribute
);
$options
[
'label'
]
=
Html
::
encode
(
$this
->
model
->
getAttributeLabel
(
$attribute
));
}
$this
->
parts
[
'{input}'
]
=
Html
::
activeCheckbox
(
$this
->
model
,
$this
->
attribute
,
$options
);
$this
->
parts
[
'{label}'
]
=
''
;
...
...
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