We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e08166a commit 6140bd3Copy full SHA for 6140bd3
EditableAction.php
@@ -87,7 +87,8 @@ public function run()
87
$model->$attribute = $value;
88
89
if ($model->validate([$attribute])) {
90
- return $model->save(true, [$attribute]);
+ // no need to specify which attributes as Yii2 handles that via [[BaseActiveRecord::getDirtyAttributes]]
91
+ return $model->save(false);
92
} else {
93
throw new BadRequestHttpException($model->getFirstError($attribute));
94
}
0 commit comments