Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035135Openbravo ERPA. Platformpublic2017-02-02 10:312017-02-02 11:28
NaroaIriarte 
platform 
normalminoralways
closedduplicate 
5
 
 
caristu
Core
No
0035135: An error is shown in chrome console when clicking the "done" button of the "Add Payment" process in some circumstances
If there is a button type column that has a process definition and a subreference list is added to it, after executing that process and clicking the done button in the parameter window, an error is raised in the chrome console.
It has been tested only with the "Add Payment" process.

This is the error:

Uncaught TypeError: Cannot read property '_handleSelect' of null
    at HTMLInputElement.onselect (VM44869 :1)
1- Login the ERP with System Admin. role.
2- Go to "Modules" and set the "org.openbravo.advpaymentmngt" module in development.
3- Go to "Tables and Colums" window.
4- Find "C_Order" table.
5- In the column subtab find "EM_APRM_AddPayment" column and edit that record setting the "Reference Search key" field with the "Add Payment Transaction type" value and save the record.
6- Logout and login with the F&B Admin role.
7- Go to "Sales Order" window.
8- Create a new record with one line and book it.
9- Click on the "Add Payment" process. The Parameter window will open.
10- Click on the "Done" button.
11- Realize that an error is raised in Chrome console.
No tags attached.
duplicate of defect 0030249 acknowledged Triage Platform Base An error is get in the chrome console when executing a Process Definition. 
Issue History
2017-02-02 10:31NaroaIriarteNew Issue
2017-02-02 10:31NaroaIriarteAssigned To => platform
2017-02-02 10:31NaroaIriarteModules => Core
2017-02-02 10:31NaroaIriarteTriggers an Emergency Pack => No
2017-02-02 10:35NaroaIriarteNote Added: 0094010
2017-02-02 10:35NaroaIriarteDescription Updatedbug_revision_view_page.php?rev_id=14439#r14439
2017-02-02 11:25NaroaIriarteStatusnew => scheduled
2017-02-02 11:25NaroaIriarteStatusscheduled => acknowledged
2017-02-02 11:26NaroaIriarteStatusacknowledged => scheduled
2017-02-02 11:28NaroaIriarteReview Assigned To => caristu
2017-02-02 11:28NaroaIriarteRelationship addedduplicate of 0030249
2017-02-02 11:28NaroaIriarteNote Added: 0094015
2017-02-02 11:28NaroaIriarteStatusscheduled => closed
2017-02-02 11:28NaroaIriarteResolutionopen => duplicate

Notes
(0094010)
NaroaIriarte   
2017-02-02 10:35   
The problem seems to be that there is a point in the code in which it is trying to show the form, but a call to "popup.closeClick" is done and this method call is invoking other functions that are destroying the elements of the form. And when the elements trying to be referenced, they don't exist and this error is raised.

Uncaught TypeError: Cannot read property '_handleSelect' of null
    at HTMLInputElement.onselect (VM44869 :1)
(0094015)
NaroaIriarte   
2017-02-02 11:28   
This issue is a duplicate of the issue 30249, and maybe to the issue 34656 (not sure yet)