Skip to content

Commit

Permalink
UIU-1438: Omit 'notify' field upon creating fee/fine in order to prev…
Browse files Browse the repository at this point in the history
…ent backend error (#1111)
  • Loading branch information
ViktorSoroka07 authored and zburke committed Jan 6, 2020
1 parent 71717cf commit 233348e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* Go back to user's accounts when clicking on cancel or `x` from fee/fine form. Fixes UIU-1412.
* Reset patronBlocks before refetching. Fixes UIU-1430 and UIU-1431.
* Fix bug with wrong displaying of address type. Refs UIU-1404
* Omit 'notify' field upon creating fee/fine in order to prevent backend error. Fixes UIU-1438.

## [2.26.0](https://github.com/folio-org/ui-users/tree/v2.26.0) (2019-12-05)
[Full Changelog](https://github.com/folio-org/ui-users/compare/v2.25.3...v2.26.0)
Expand Down
3 changes: 2 additions & 1 deletion src/components/Accounts/ChargeFeeFine/ChargeFeeFine.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ class ChargeFeeFine extends React.Component {
}
this.type.paymentStatus.name = paymentStatus;
this.props.mutator.activeRecord.update({ id: this.type.id });
return this.props.mutator.accounts.PUT(this.type);

return this.props.mutator.accounts.PUT(_.omit(this.type, ['notify']));
})
.then(() => this.newAction({ paymentMethod: values.method }, this.type.id,
this.type.paymentStatus.name, values.amount,
Expand Down

0 comments on commit 233348e

Please sign in to comment.