Items App loses sort-order after search cleared
Description
CSP Request Details
None
CSP Rejection Details
None
Potential Workaround
None
Checklist
hideTestRail: Results
Activity
Show:

Charlotte Whitt July 27, 2017 at 12:17 PM
Manually tested in http://folio-testing.aws.indexdata.com/version @folio/items 1.7.100158, using Chrome.
When using the 'x' clear search in the Item app, the default sort-order (by title) is back. All looks good.
I'll close the issue as done.

Mike Taylor July 26, 2017 at 1:17 PM
The new issue is filed as .

Mike Taylor July 26, 2017 at 1:15 PM
Fixed in https://github.com/folio-org/ui-items/commit/b990343ddfab59b9a3a500d836b947e0b6980b93
But visible state does not reset with it, as is the case for the Users module – see UIU-167. I suppose I should file analogous bug for ui-items.
TestRail: Cases
TestRail: Runs
As in UIU-155, the "Clear search" button (small "X" to the right of the search box) redirects to the mount-point of the application rather than its home – in this case, to
/items
rather than/items?sort=title
. As a result, the default sort-order (by title) is lost.The button should cause a redirect to the application's home page.