Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031647Openbravo ERPA. Platformpublic2015-12-02 20:022016-03-17 10:53
caristu 
caristu 
highminoralways
closedfixed 
5
 
3.0PR16Q2 
alostale
Core
No
0031647: js error after pressing ESC key on empty grid parameter of a process definition
The following js error is thrown in the console:

Uncaught TypeError: Cannot read property 'id' of null

after pressing ESC key on empty grid parameter of a process definition
1) Go to the [Payment In] window
2) Create a new record in the header
3) Click on the Add Details button
4) In the Order/Invoice grid enter a filtering in order to display the grid empty
5) Having the focus on the filter, press ESC key
No tags attached.
related to defect 0027773 closed caristu It is not possible to perform tasks in the Add Details pop up window using only keyboard shortcuts 
Issue History
2015-12-02 20:02caristuNew Issue
2015-12-02 20:02caristuAssigned To => platform
2015-12-02 20:02caristuModules => Core
2015-12-02 20:02caristuTriggers an Emergency Pack => No
2015-12-02 20:02caristuRelationship addedrelated to 0027773
2015-12-10 09:39alostaleStatusnew => acknowledged
2016-01-11 16:16hgbotCheckin
2016-01-11 16:16hgbotNote Added: 0083196
2016-01-11 16:16hgbotStatusacknowledged => resolved
2016-01-11 16:16hgbotResolutionopen => fixed
2016-01-11 16:16hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/0759c894c939251afbf8949c8b114ffaca69582c [^]
2016-01-11 16:17caristuReview Assigned To => alostale
2016-01-11 16:17caristuIssue Monitored: alostale
2016-01-13 12:45caristuAssigned Toplatform => caristu
2016-01-15 11:24alostaleNote Added: 0083339
2016-01-15 11:24alostaleStatusresolved => closed
2016-01-15 11:24alostaleFixed in Version => 3.0PR16Q2
2016-03-17 10:53hudsonbotCheckin
2016-03-17 10:53hudsonbotNote Added: 0085027

Notes
(0083196)
hgbot   
2016-01-11 16:16   
Repository: erp/devel/pi
Changeset: 0759c894c939251afbf8949c8b114ffaca69582c
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Jan 11 13:20:26 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0759c894c939251afbf8949c8b114ffaca69582c [^]

fixes issue 31647: error after press ESC on empty grid of a process definition

The pneSelectionUpdated() function assumes that the actualRecord parameter is not null. If this method is invoked when a null or undefined value an error is thrown when trying to access to the id property of actualRecord. To prevent this error now we check if actualRecord is different from null and undefined before invoking pneSelectionUpdated() on the selectRecord() method of OBPickAndExecuteGrid

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
---
(0083339)
alostale   
2016-01-15 11:24   
code reviewed + tested
(0085027)
hudsonbot   
2016-03-17 10:53   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b22fb0500156 [^]
Maturity status: Test