Openbravo Issue Tracking System - POS2
View Issue Details
0046195POS2POSpublic2021-03-31 11:342021-04-06 19:24
jmelin 
jorge-garcia 
urgentmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
 
No
0046195: JIRA 1532 - Error when editing a menu after spliting lines
After spliting a menu with quantity >1, an error is triggered when clicking on a component of the new menu lines created.

Error => "Cannot read property 'top' of null"
1. add a menu and select components
2. update quantity to 2
3. split lines of the menus
4. click on a component of the second menu
Takeaway
? error_split_lines_2021-03-31_11-28-21.mp4 (2,057,141) 2021-03-31 11:34
https://issues.openbravo.com/file_download.php?file_id=15487&type=bug
png error.png (32,205) 2021-03-31 11:34
https://issues.openbravo.com/file_download.php?file_id=15488&type=bug
png
Issue History
2021-03-31 11:34jmelinNew Issue
2021-03-31 11:34jmelinAssigned To => Retail
2021-03-31 11:34jmelinFile Added: error_split_lines_2021-03-31_11-28-21.mp4
2021-03-31 11:34jmelinTriggers an Emergency Pack => No
2021-03-31 11:34jmelinTag Attached: Takeaway
2021-03-31 11:34jmelinFile Added: error.png
2021-04-06 09:14jorge-garciaAssigned ToRetail => jorge-garcia
2021-04-06 09:14jorge-garciaStatusnew => acknowledged
2021-04-06 17:18jorge-garciaStatusacknowledged => scheduled
2021-04-06 17:20hgbotNote Added: 0127113
2021-04-06 19:24hgbotNote Added: 0127116
2021-04-06 19:24hgbotResolutionopen => fixed
2021-04-06 19:24hgbotStatusscheduled => closed
2021-04-06 19:24hgbotNote Added: 0127117

Notes
(0127113)
hgbot   
2021-04-06 17:20   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/18 [^]
(0127116)
hgbot   
2021-04-06 19:24   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/18 [^]
(0127117)
hgbot   
2021-04-06 19:24   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant [^]
Changeset: 9edde3000c9384c062b12c5389f5665aa5380941
Author: Jorge Garcia <jorge.garcia@openbravo.com>
Date: 2021-04-06T17:18:23+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/commit/9edde3000c9384c062b12c5389f5665aa5380941 [^]

Fixes ISSUE-46195: Error when splitting a menu and selecting a menu
item from new line

The problem was that the reference of the div was not populated when the
payload is created.

Create the anchorEl property reference when we are going to launch the
userAction to open menu item popover

---
M web-jspack/org.openbravo.pos2.restaurant/src/components/TicketMenuLine/TicketMenuInProgressLineItem/TicketMenuInProgressLineItem.jsx
---