mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-25 11:10:36 +08:00
Fixes #4135
This commit is contained in:
@@ -716,7 +716,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
|
|||||||
|
|
||||||
$changedAttributes = [];
|
$changedAttributes = [];
|
||||||
foreach ($values as $name => $value) {
|
foreach ($values as $name => $value) {
|
||||||
$changedAttributes[$name] = $this->_oldAttributes[$name];
|
$changedAttributes[$name] = isset($this->_oldAttributes[$name]) ? $this->_oldAttributes[$name] : null;
|
||||||
$this->_oldAttributes[$name] = $value;
|
$this->_oldAttributes[$name] = $value;
|
||||||
}
|
}
|
||||||
$this->afterSave(false, $changedAttributes);
|
$this->afterSave(false, $changedAttributes);
|
||||||
|
|||||||
Reference in New Issue
Block a user