Skip to content

Commit

Permalink
Merge pull request #43 from cjmellor/fix/relationship-data
Browse files Browse the repository at this point in the history
fix: Force data approval
  • Loading branch information
cjmellor authored Oct 12, 2023
2 parents 0151153 + 4bd6e77 commit ecef9d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Scopes/ApprovalStateScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ protected function addApprove(Builder $builder): void
$model = $model->find($modelId);
}

$model->fill($builder->getModel()->new_data->toArray());

$model->forceFill($builder->getModel()->new_data->toArray());
$model->withoutApproval()->save();
}

Expand Down

0 comments on commit ecef9d0

Please sign in to comment.