Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||
View Issue Details | |||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0017249 | Openbravo ERP | A. Platform | public | 2011-05-18 16:59 | 2011-05-26 07:47 | ||||||||
Reporter | vmromanos | ||||||||||||
Assigned To | iperdomo | ||||||||||||
Priority | urgent | Severity | major | Reproducibility | random | ||||||||
Status | closed | Resolution | invalid | ||||||||||
Platform | OS | 20 | OS Version | Debian 5.0 | |||||||||
Product Version | |||||||||||||
Target Version | 3.0MP0 | Fixed in Version | |||||||||||
Merge Request Status | |||||||||||||
Review Assigned To | |||||||||||||
OBNetwork customer | No | ||||||||||||
Web browser | |||||||||||||
Modules | Core | ||||||||||||
Support ticket | |||||||||||||
Regression level | |||||||||||||
Regression date | |||||||||||||
Regression introduced in release | |||||||||||||
Regression introduced by commit | |||||||||||||
Triggers an Emergency Pack | No | ||||||||||||
Summary | 0017249: Static JS created outside core (in modules) could not work | ||||||||||||
Description | For the CIF and NIF validator module, I have created a static JS that is called from a callout. The definition is very simple: OB.CIFNIF = {}; OB.CIFNIF.showMessage = function(me, message, messageType) { [continue] - The CIFNIF object is defined inside our OB object. - The module has a dependency to Core. The problem is that the OB.CIFNIF object is created BEFORE the OB one, so the definition is totally wrong. If I change the module dependency from Core to client.kernel, the OB.CIFNIF object is created after the OB one and it works fine. However this is not the solution because the system should know that each dependency of core should imply a dependency to the client.kernel module | ||||||||||||
Steps To Reproduce | 1. Install the CIF NIF validator module >=1.0.2 2. Define the SE_CIFNIF_Validator callout to the taxid column of the c_bpartner table and compile and restart tomcat as usual (optional) 4. Try to login into the application. The loading bar doesn't disappear. Check the JS console output for the error "Uncaught TypeError: Cannot set property 'CIFNIF' of undefined" | ||||||||||||
Proposed Solution | |||||||||||||
Additional Information | |||||||||||||
Tags | No tags attached. | ||||||||||||
Relationships |
| ||||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=4060&type=bug | ||||||||||||
Issue History | |||||||||||||
Date Modified | Username | Field | Change | ||||||||||
2011-05-18 16:59 | vmromanos | New Issue | |||||||||||
2011-05-18 16:59 | vmromanos | Assigned To | => iperdomo | ||||||||||
2011-05-18 16:59 | vmromanos | Modules | => Core | ||||||||||
2011-05-18 16:59 | vmromanos | OBNetwork customer | => No | ||||||||||
2011-05-18 17:01 | vmromanos | Relationship added | blocks 0016484 | ||||||||||
2011-05-18 17:02 | iperdomo | Status | new => scheduled | ||||||||||
2011-05-18 17:02 | iperdomo | fix_in_branch | => pi | ||||||||||
2011-05-20 11:43 | vmromanos | File Added: org.openbravo.module.cifnifvalidator-1.0.2.obx | |||||||||||
2011-05-25 13:24 | hgbot | Checkin | |||||||||||
2011-05-25 13:24 | hgbot | Note Added: 0037427 | |||||||||||
2011-05-25 13:24 | hgbot | Status | scheduled => resolved | ||||||||||
2011-05-25 13:24 | hgbot | Resolution | open => fixed | ||||||||||
2011-05-25 13:24 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/4ca58960e91f2e7f5f680ec5834b8458edb55953 [^] | ||||||||||
2011-05-25 16:23 | iperdomo | Status | resolved => new | ||||||||||
2011-05-25 16:23 | iperdomo | Resolution | fixed => open | ||||||||||
2011-05-25 16:23 | iperdomo | Status | new => scheduled | ||||||||||
2011-05-25 18:34 | iperdomo | Note Added: 0037455 | |||||||||||
2011-05-25 18:34 | iperdomo | Status | scheduled => closed | ||||||||||
2011-05-25 18:34 | iperdomo | Resolution | open => invalid | ||||||||||
2011-05-26 07:47 | hudsonbot | Checkin | |||||||||||
2011-05-26 07:47 | hudsonbot | Note Added: 0037556 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|