Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014160Openbravo ERPA. Platformpublic2010-08-11 20:212010-08-17 00:00
elopio 
dbaz 
urgentmajoralways
closedfixed 
20
3.0RC1 
 
Core
No
0014160: "arrMessages is undefined" error when openning a window
When openning a window from the navigation bar menu, the following error is received if the mouse is over the tabs of the window:

Error received in IO response:
arrMessages is undefined
Login to openbravo 3.0 RC1
Open a window from the menu. For example, Application Dictionary > Tables and Columns
Just after clicking the menu item move the mouse to the top of the screen. Here the message does not appear.

Now close the Tables and Columns window.
Click again Application Dictionary > Tables and Columns from the menu.
Just after clicking the menu item move the mouse over the tab "Table"
The error message appears (see attachment)

It disappears clicking the reload button.
Once the error message appears once, every opened window will show it. Only clearing the cache makes it possible to open windows without the error.
No tags attached.
related to defect 0013712 closed iperdomo DirectLinking has race condition between opened window and the menuFrame content. 
png arrMessages.png (36,665) 2010-08-11 20:21
https://issues.openbravo.com/file_download.php?file_id=2841&type=bug
png

diff messages.js.diff (373) 2010-08-12 11:27
https://issues.openbravo.com/file_download.php?file_id=2844&type=bug
diff 14160.diff (896) 2010-08-12 11:58
https://issues.openbravo.com/file_download.php?file_id=2846&type=bug
Issue History
2010-08-11 20:21elopioNew Issue
2010-08-11 20:21elopioAssigned To => alostale
2010-08-11 20:21elopioFile Added: arrMessages.png
2010-08-11 20:21elopioRelationship addedrelated to 0010138
2010-08-12 07:46alostaleStatusnew => scheduled
2010-08-12 07:46alostaleAssigned Toalostale => dbaz
2010-08-12 07:46alostalefix_in_branch => pi
2010-08-12 11:05iperdomoRelationship addedrelated to 0013712
2010-08-12 11:10plujanNote Added: 0029907
2010-08-12 11:10plujanPriorityimmediate => urgent
2010-08-12 11:10plujanfix_in_branchpi =>
2010-08-12 11:27iperdomoFile Added: messages.js.diff
2010-08-12 11:27iperdomoNote Added: 0029909
2010-08-12 11:58iperdomoFile Added: 14160.diff
2010-08-12 11:59iperdomoNote Added: 0029912
2010-08-12 12:04iperdomoNote Edited: 0029912bug_revision_view_page.php?bugnote_id=0029912#r666
2010-08-12 13:53shuehnerRelationship deletedrelated to 0010138
2010-08-13 14:34hgbotCheckin
2010-08-13 14:34hgbotNote Added: 0029955
2010-08-13 14:34hgbotStatusscheduled => resolved
2010-08-13 14:34hgbotResolutionopen => fixed
2010-08-13 14:34hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/68c8c4203f9137e13d81e497816169e299e612b0 [^]
2010-08-13 21:05hudsonbotCheckin
2010-08-13 21:05hudsonbotNote Added: 0029960
2010-08-16 09:14iperdomoNote Added: 0029977
2010-08-16 09:14iperdomoStatusresolved => closed
2010-08-17 00:00anonymoussf_bug_id0 => 3046646

Notes
(0029907)
plujan   
2010-08-12 11:10   
Priority changed to Urgent
(0029909)
iperdomo   
2010-08-12 11:27   
Proposed solution in the attached .diff
(0029912)
iperdomo   
2010-08-12 11:59   
(edited on: 2010-08-12 12:04)
The second diff (14160.diff) also fixes a failed call to getAppUrl() when the menu is not present. This call is not needed since all the required data for building a "manual url" is in the location itself

More info about the Location object properties at
https://developer.mozilla.org/en/window.location#Location_object [^]

(0029955)
hgbot   
2010-08-13 14:34   
Repository: erp/devel/pi
Changeset: 68c8c4203f9137e13d81e497816169e299e612b0
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Fri Aug 13 14:34:37 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/68c8c4203f9137e13d81e497816169e299e612b0 [^]

Fixed issue 14160: Now there is no error msgbox in grid if frameMenu is not avaialable

---
M src/org/openbravo/erpCommon/security/Login_F1.html
M web/js/messages.js
M web/js/utils.js
---
(0029960)
hudsonbot   
2010-08-13 21:05   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/68c8c4203f91 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/3ca7a8ff74e7 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18155.obx [^]
(0029977)
iperdomo   
2010-08-16 09:14   
Tested on pi @ rev 905bba2e13c2