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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
780c3944
Commit
780c3944
authored
Feb 02, 2015
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove requirement of `name` field on Jui InputWidget
there is no benefit in enforcing it. fixes #7127
parent
770d65a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
CHANGELOG.md
extensions/jui/CHANGELOG.md
+1
-1
InputWidget.php
extensions/jui/InputWidget.php
+0
-3
No files found.
extensions/jui/CHANGELOG.md
View file @
780c3944
...
...
@@ -4,7 +4,7 @@ Yii Framework 2 jui extension Change Log
2.
0.3 under development
-----------------------
-
no changes in this release.
-
Enh #7127:
`name`
or
`model`
and
`attribute`
are no longer required properties of
`yii\jui\InputWidget`
(nirvana-msu, cebe)
2.0.2 January 11, 2015
...
...
extensions/jui/InputWidget.php
View file @
780c3944
...
...
@@ -43,9 +43,6 @@ class InputWidget extends Widget
*/
public
function
init
()
{
if
(
!
$this
->
hasModel
()
&&
$this
->
name
===
null
)
{
throw
new
InvalidConfigException
(
"Either 'name', or 'model' and 'attribute' properties must be specified."
);
}
if
(
$this
->
hasModel
()
&&
!
isset
(
$this
->
options
[
'id'
]))
{
$this
->
options
[
'id'
]
=
Html
::
getInputId
(
$this
->
model
,
$this
->
attribute
);
}
...
...
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