Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0052568Openbravo ERPA. Platformpublic2023-05-25 16:502023-05-25 16:51
caristu 
Triage Platform Base 
highminorhave not tried
newopen 
5
 
 
Core
No
0052568: Uncaught JS error thrown when working with backoffice windows under some circumstances
Uncaught JS error thrown when working with backoffice windows under some circumstances. This error is not reproduced on every window, at least it is required to have a callout being executed when a field change and a display logic based on a value computed with that callout.
0) Setup an environment with org.openbravo.events.client and org.openbravo.events.payment module. This have we'll be able to reproduce the issue in the [Event Subscription] window.
1) Go to the [External System] window and create two external systems: one with protocol "Touchpoint - Frontend" and the other with protocol "HTTP - Backend"
2) Go to the [Event Subscription] window. Create a new record in form view:
  - Organization: any
  - Event: "Event Payment Provider"
  - External System: The one created with "HTTP - Backend" protocol
3) Save the record. It will not be possible because there is an event handler prevent it. This is correct.
4) Change now the external system and select the one created with "Touchpoint - Frontend" protocol. Notice that a JS error is fired in the console and we cannot work with the form anymore until the changes are discarded.

The JS error fired is:

ISC_Combined.js:254 Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?
    at _2.isc_Canvas__updateParentHTML [as $p9] (http://127.0.0.1:8080/openbravo/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js:1762:369 [^])
    at _2.isc_Canvas__updateHTML [as $ra] (http://127.0.0.1:8080/openbravo/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js:1756:19 [^])
    at _2.isc_Canvas_redraw [as redraw] (http://127.0.0.1:8080/openbravo/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js:1752:707 [^])
    at _2.isc_c_Class_invokeSuper [as invokeSuper] (http://127.0.0.1:8080/openbravo/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js:245:93 [^])
    at _2.isc_c_Class_Super [as Super] (http://127.0.0.1:8080/openbravo/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js:237:170 [^])
    at _2.isc_DynamicForm_redraw [as redraw] (http://127.0.0.1:8080/openbravo/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js:8032:370 [^])
    at _2.isc_c_Class_invokeSuper [as invokeSuper] (http://127.0.0.1:8080/openbravo/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js:245:93 [^])
    at _2.isc_c_Class_Super [as Super] (http://127.0.0.1:8080/openbravo/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js:237:170 [^])
    at _2.redraw (http://127.0.0.1:8080/openbravo/web/js/gen/bc5df557e22f9c3bd162d0430012b17e.js:46726:10 [^])
    at _2.processFICReturn (http://127.0.0.1:8080/openbravo/web/js/gen/bc5df557e22f9c3bd162d0430012b17e.js:45237:10 [^])
No tags attached.
related to design defect 0051088 closed adrianromero Retail Modules [Payment Limit validation] Event payment limit management should be configurable at organization or touchpoint type level 
Issue History
2023-05-25 16:50caristuNew Issue
2023-05-25 16:50caristuAssigned To => Triage Platform Base
2023-05-25 16:50caristuModules => Core
2023-05-25 16:50caristuTriggers an Emergency Pack => No
2023-05-25 16:51caristuRelationship addedrelated to 0051088

There are no notes attached to this issue.