Skip to content

Commit

Permalink
Update EditableAction.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy committed Jan 4, 2016
1 parent 6d7a968 commit e08166a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EditableAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function run()
$model->$attribute = $value;

if ($model->validate([$attribute])) {
return $model->save(false);
return $model->save(true, [$attribute]);
} else {
throw new BadRequestHttpException($model->getFirstError($attribute));
}
Expand Down

0 comments on commit e08166a

Please sign in to comment.