Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049944
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSminorhave not tried2022-08-04 11:082022-08-12 09:20
ReporterplujanView Statuspublic 
Assigned Tomeriem_azaf 
PrioritynormalResolutionfixedFixed in Version22Q4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049944: [ProductSearch] Removing a filter using Backspace does not completely removes the filter

DescriptionWhen using a text for filtering, it works fine if I select the whole text and delete it, but if I delete the characters one by one the last one is shown after deleted
Steps To Reproduce1. From the main pos window, go to the "Search" field to filter the keymap
2. Enter three characters "GPS" (case is not relevant)
3. Select all the text and delete it. As expected, the filter is cleared out and the keymap is not filtered anymore.
4. Enter again "GPS"
5. Use the Backspace key to remove the S, the P and finally the G. Notice that the G shows up after deleted and the filtering is not cleared out as the keymap only shows the products containing the letter G
TagsFASH
Attached Filesjpg file icon ProductFiltering.jpg [^] (68,918 bytes) 2022-08-04 11:08


? file icon BackspaceAndClearDoNotWorkProperly.mp4 [^] (3,139,123 bytes) 2022-08-04 12:52

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0049958 newRetail [Product Search] Present schema is not taken into account and all products are mixed 

-  Notes
(0139899)
lorenzofidalgo (developer)
2022-08-04 12:55

A similar behaviour can also be reproduced with the following Steps:
0-Login POS2 as vallblanca.
1-Inside the Product Search input field, write "bott". A filtering will be executed after 1 second.
2-Using the backspace, delete last character and just after that, click "X" button to clear all the input field content. DEFECT: The clear will be executed, but, after just a moment all the string except for 1 character will appear again. These two actions must be done quickly to be able to reproduce it (check attached file BackspaceAndClearDoNotWorkProperly.mp4).
(0139995)
hgbot (developer)
2022-08-09 09:41

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1132 [^]
(0140082)
hgbot (developer)
2022-08-12 09:20

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1132 [^]
(0140083)
hgbot (developer)
2022-08-12 09:20

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 9aa9f2c0deca35e96bab92e9386b012a029748aa
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 12-08-2022 09:20:15
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/9aa9f2c0deca35e96bab92e9386b012a029748aa [^]

Fixes ISSUE-49944: Removing a filter using Backspace does not completely removes the filter.

When using a text for filtering, it works fine if I select the whole text and delete it, but if I delete the characters one by one the last one is shown after deleted.

To fix this, we had add debounceHandleSearch.cancel() in the onFilterChange in SearchInput.jsx.

---
M web-jspack/org.openbravo.pos2/src/components/ProductSearch/SearchInput/SearchInput.jsx
M web-jspack/org.openbravo.pos2/src/components/ProductSearch/SearchInput/__test__/SearchInput.test.jsx
---

- Issue History
Date Modified Username Field Change
2022-08-04 11:08 plujan New Issue
2022-08-04 11:08 plujan Assigned To => Retail
2022-08-04 11:08 plujan File Added: ProductFiltering.jpg
2022-08-04 11:08 plujan Triggers an Emergency Pack => No
2022-08-04 12:52 lorenzofidalgo File Added: BackspaceAndClearDoNotWorkProperly.mp4
2022-08-04 12:55 lorenzofidalgo Note Added: 0139899
2022-08-05 16:01 rafaroda Tag Attached: FASH
2022-08-05 16:03 rafaroda Relationship added related to 0049958
2022-08-09 09:41 hgbot Note Added: 0139995
2022-08-10 09:24 AugustoMauch Assigned To Retail => meriem_azaf
2022-08-10 09:24 AugustoMauch Status new => scheduled
2022-08-12 09:20 hgbot Resolution open => fixed
2022-08-12 09:20 hgbot Status scheduled => closed
2022-08-12 09:20 hgbot Note Added: 0140082
2022-08-12 09:20 hgbot Fixed in Version => 22Q4
2022-08-12 09:20 hgbot Note Added: 0140083


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker