Openbravo Issue Tracking System - POS2
View Issue Details
0051389POS2POSpublic2023-01-09 16:532023-02-09 14:09
javierRodriguez 
Retail 
normalmajoralways
closedfixed 
5
 
23Q123Q1 
No
0051389: The application crash if the user tries to order by any attribute in select lines
in some flows like POPs or split check, if the user tries to order by any attribute, the application crash.
TypeError: Cannot read properties of undefined (reading 'length').
- Create a ticket
- Add some lines
- Go to payment panel
- Click on "Split check" and select "Select products from check" option
- Click in order line label
- KO, application crashed.
It is possible to remove sortable attribute in SelectLines component.
No tags attached.
blocks defect 0051308 closed Retail The application crash if the user tries to order by any attribute in select lines 
Issue History
2023-01-17 13:53guilleaerTypedefect => backport
2023-01-17 13:53guilleaerTarget Version => 23Q1
2023-02-03 10:58hgbotNote Added: 0146245
2023-02-09 14:09hgbotResolutionopen => fixed
2023-02-09 14:09hgbotStatusscheduled => closed
2023-02-09 14:09hgbotNote Added: 0146312
2023-02-09 14:09hgbotFixed in Version => 23Q1
2023-02-09 14:09hgbotNote Added: 0146313

Notes
(0146245)
hgbot   
2023-02-03 10:58   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1508 [^]
(0146312)
hgbot   
2023-02-09 14:09   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1508 [^]
(0146313)
hgbot   
2023-02-09 14:09   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 5168f89939e133319cdc3ad07a0e6f8953e0367e
Author: Javier Rodríguez Regueiro <javier.rodriguez@openbravo.com>
Date: 09-02-2023 13:09:49
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/5168f89939e133319cdc3ad07a0e6f8953e0367e [^]

Fixed ISSUE-51389: Create SelectLines data source to be able to sort order lines.

---
A web-jspack/org.openbravo.pos2/src/components/SelectLines/SelectedLinesGrid/SelectLinesDataSource.js
M web-jspack/org.openbravo.pos2/src/components/SelectLines/SelectedLinesGrid/SelectLines.jsx
---