diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d6c5cc7f..6ce54c5cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/components/Accounts/ChargeFeeFine/ChargeFeeFine.js b/src/components/Accounts/ChargeFeeFine/ChargeFeeFine.js index 31afb73cd..9273f9ea5 100644 --- a/src/components/Accounts/ChargeFeeFine/ChargeFeeFine.js +++ b/src/components/Accounts/ChargeFeeFine/ChargeFeeFine.js @@ -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,