Skip to content

Commit

Permalink
Merge pull request #895 from Hylozoic/fix-saving-group-settings
Browse files Browse the repository at this point in the history
Fix bug that prevented saving group settings sometimes
  • Loading branch information
tibetsprague authored Nov 23, 2022
2 parents a94f687 + 2716f13 commit c5f8189
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Fixed
- Bug that prevented saving group settings sometimes

## [5.0.2] - 2022-11-13

### Added
Expand Down
2 changes: 1 addition & 1 deletion api/models/mixins/HasSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
this.set('settings', merge({}, this.get('settings'), value))
if (save) {
const options = { patch: true }
if (transacting) settings['transacting'] = transacting
if (transacting) options['transacting'] = transacting
return this.save({settings: this.get('settings')}, options)
}
return this
Expand Down

0 comments on commit c5f8189

Please sign in to comment.