Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0001485Openbravo ERPZ. Otherspublic2007-07-03 16:142008-06-19 18:43
plujan 
dbaz 
normalminoralways
closedfixed 
5
 
2.40alpha-r2 
No
Core
No
0001485: Javascript error when scrolling on an empty grid
Description:
When scrolling with mouse wheel on an empty grid, a Javascript error raises.

Enviroment:
OS: Windows XP SP2
DB: Oracle XE
Browser: FF2
Openbravo: 2.31 Beta
Language: English

Steps:
1. Go Procurement Management > Transactions > Purchase Order
2. Create a new Purchase order with valid data
3. Move to Order Lines Tab
4. The empty grid appears
5. Use the mouse wheel to scroll. An error raises: [Exception... "'Error: this.rows has no properties' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
6. The error does not appear when scrolling over a non empty grid.
No tags attached.
depends on backport 0003518 closed dbaz Javascript error when scrolling on an empty grid 
Issue History
2008-06-19 18:43psarobeStatusresolved => closed

Notes
(0005074)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1747146 [^]
(0001397)
dbaz   
2007-10-22 19:29   
(edited on: 2008-06-12 09:19)
Logged In: YES
user_id=1500873
Originator: NO

Change handleScroll function of DataGrid.js. Now there is no javascript error when you scroll on an empty grid.