From 8987217d061c72f42c196e23da3514a5f93d15ff Mon Sep 17 00:00:00 2001 From: Priyanka Date: Wed, 18 Oct 2023 11:37:50 +0530 Subject: [PATCH] Pass location.search parameter through history search. --- CHANGELOG.md | 1 + src/views/UserEdit/UserEdit.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6798acea..60277d3b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [10.1.0] IN PROGRESS * Don't display affiliations of users with types `patron` or `dcb`. Refs UIU-2967. +* Pass location.search parameter through history search. Refs UIU-2971. ## [10.0.0](https://github.com/folio-org/ui-users/tree/v10.0.0) (2023-10-13) [Full Changelog](https://github.com/folio-org/ui-users/compare/v9.0.3...v10.0.0) diff --git a/src/views/UserEdit/UserEdit.js b/src/views/UserEdit/UserEdit.js index 852b4a655..e885326f9 100644 --- a/src/views/UserEdit/UserEdit.js +++ b/src/views/UserEdit/UserEdit.js @@ -401,8 +401,9 @@ class UserEdit extends React.Component { onSubmit={onSubmit} onCancel={() => { history.push({ - pathname: params.id ? `/users/preview/${params.id}${location.search}` : '/users', + pathname: params.id ? `/users/preview/${params.id}` : '/users', state: location.state, + search: location.search, }); }} uniquenessValidator={this.props.mutator.uniquenessValidator}