Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0017249 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | random | 2011-05-18 16:59 | 2011-05-26 07:47 | |||
Reporter | vmromanos | View Status | public | |||||
Assigned To | iperdomo | |||||||
Priority | urgent | Resolution | invalid | Fixed in Version | ||||
Status | closed | Fix in branch | pi | Fixed in SCM revision | 4ca58960e91f | |||
Projection | none | ETA | none | Target Version | 3.0MP0 | |||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_12 | |||
OS Version | Debian 5.0 | Database version | 8.3.8 | Ant version | 1.7.0 | |||
Product Version | SCM revision | |||||||
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" | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|||||||||
|
![]() |
|
(0037427) hgbot (developer) 2011-05-25 13:24 |
Repository: erp/devel/pi Changeset: 4ca58960e91f2e7f5f680ec5834b8458edb55953 Author: Iván Perdomo <ivan.perdomo <at> openbravo.com> Date: Wed May 25 13:23:07 2011 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/4ca58960e91f2e7f5f680ec5834b8458edb55953 [^] Fixes issue 17249: Use known list to build dependency list Core has a undeclared dependency on client.kernel, client.application, selector, etc modules. If a module developed in 2.50 and only depends on core, tries to define a ComponentProvider for definining a new StaticResource the order of inclusion fails. --- M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelUtils.java --- |
(0037455) iperdomo (viewer) 2011-05-25 18:34 |
The way to report messages to the user is using 'MESSAGE' and not using the JavaScript API behind messages. |
(0037556) hudsonbot (viewer) 2011-05-26 07:47 |
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/728387046be6 [^] Maturity status: Test |
![]() |
|||
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 |
Copyright © 2000 - 2009 MantisBT Group |