Openbravo Issue Tracking System - Retail Modules
View Issue Details
0055502Retail ModulesWeb POSpublic2024-05-16 19:062024-05-24 11:30
ivazquez 
Rajesh_18 
lowminoralways
closedfixed 
5
pi 
RR24Q3 
No
0055502: PopUp “executeOnHide” function is not executed.
When closing a popup in WebPOS by clicking outside the popup and dragging, the “executeOnHide” function is never executed.

Reproduced in the following live builds:

https://livebuilds.openbravo.com/context/retail_modules_pgsql_pi/web/org.openbravo.retail.posterminal/?terminal=VBS-1#retail.pointofsale [^]
It is reproduced in any PopUp, but for quick testing, you can use the one that runs when you try to delete an order with a payment attached.

Put a debug point on this line:

https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/master/web/org.openbravo.mobile.core/source/utils/ob-utilitiesui.js?ref_type=heads#L327 [^]

Run the PopUp trying to delete an order with a payment and you will see that if you click outside the popup, on the “ok” button, or the “x” button, this function will be executed without problems.

But if you click on the outside of the box and drag the mouse to any side, the popup will close, but the function is not executed.


Simply click and drag down (or anywhere) outside the popup box.

Attached is a video demonstrating the error
No tags attached.
causes defect 0057581 closed aaroncalero Openbravo ERP RM-20005 [Stock] [REGRESSION] The window DO History is closed when you click outside the shipping/receiving lines. 
? bugPopupOnHide.mp4 (2,811,484) 2024-05-16 19:11
https://issues.openbravo.com/file_download.php?file_id=19785&type=bug
Issue History
2024-05-16 19:06ivazquezNew Issue
2024-05-16 19:06ivazquezAssigned To => Retail
2024-05-16 19:06ivazquezTriggers an Emergency Pack => No
2024-05-16 19:11ivazquezFile Added: bugPopupOnHide.mp4
2024-05-16 19:13ivazquezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27972#r27972
2024-05-17 12:22jorgewederagoStatusnew => acknowledged
2024-05-21 11:14Rajesh_18Assigned ToRetail => Rajesh_18
2024-05-21 11:15Rajesh_18Statusacknowledged => scheduled
2024-05-21 11:55hgbotNote Added: 0164892
2024-05-24 11:30hgbotResolutionopen => fixed
2024-05-24 11:30hgbotStatusscheduled => closed
2024-05-24 11:30hgbotFixed in Version => RR24Q3
2024-05-24 11:30hgbotNote Added: 0165080
2024-05-24 11:30hgbotNote Added: 0165081
2025-01-17 10:31mtaalRelationship addedcauses 0057581

Notes
(0164892)
hgbot   
2024-05-21 11:55   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/711 [^]
(0165080)
hgbot   
2024-05-24 11:30   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 60e960c53687e26157b255ed53672911ad9b199e
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 21-05-2024 15:09:49
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/60e960c53687e26157b255ed53672911ad9b199e [^]

Fixed ISSUE-55502: Added drag handler to popup

---
M web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js
---
(0165081)
hgbot   
2024-05-24 11:30   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/711 [^]