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
67bd4972
Commit
67bd4972
authored
Jul 07, 2014
by
miramir
Committed by
Carsten Brandt
Jul 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check availabilty field in BaseActiveRecord::populateRecord
check with Object::canSetProperty() fixes #4305, close #4211
parent
f5f93647
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
BaseActiveRecord.php
framework/db/BaseActiveRecord.php
+1
-1
No files found.
framework/CHANGELOG.md
View file @
67bd4972
...
...
@@ -186,6 +186,7 @@ Yii Framework 2 Change Log
-
Chg #4071:
`mail`
component renamed to
`mailer`
,
`yii\log\EmailTarget::$mail`
renamed to
`yii\log\EmailTarget::$mailer`
(samdark)
-
Chg #4147:
`BaseMailer::compose()`
will not overwrite the
`message`
parameter if it is explicitly provided (qiangxue)
-
Chg #4201: change default value of
`SyslogTarget::facility`
from LOG_SYSLOG to LOG_USER (dizews)
-
Chg #4211: BaseActiveRecord::populateRecord now silently hide selected columns that are not defined in AR instead of failing with an error (miramir)
-
Chg #4227:
`\yii\widgets\LinkPager::$hideOnSinglePage`
is now
`true`
by default (samdark)
-
Chg #4310: Removed
`$data`
from signature of
`yii\rbac\ManagerInterface`
(samdark)
-
Chg #4318:
`yii\helpers\Html::ul()`
and
`ol()`
will return an empty list tag if an empty item array is given (qiangxue)
...
...
framework/db/BaseActiveRecord.php
View file @
67bd4972
...
...
@@ -1042,7 +1042,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
foreach
(
$row
as
$name
=>
$value
)
{
if
(
isset
(
$columns
[
$name
]))
{
$record
->
_attributes
[
$name
]
=
$value
;
}
else
{
}
else
if
(
$record
->
canSetProperty
(
$name
))
{
$record
->
$name
=
$value
;
}
}
...
...
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