Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025741Openbravo ERPA. Platformpublic2014-02-14 14:222014-02-27 06:40
jecharri 
alostale 
immediatemajoralways
closedfixed 
5
 
3.0PR14Q23.0PR14Q2 
shankarb
Google Chrome
Core
No
0025741: Impossible to add the widget "User defined HTML Widget"
Impossible to add the widget "User defined HTML Widget"
-Login to ERP
-Inside the workspace go to manage Workspace section
-Press in "Admin Others"
-Select a "level" and "value"

Try to add the widget "User defined HTML Widget"

You will see that sometimes does not appear and when it appears it is impossible to add with error

"Error occured: org.codehaus.jettison.json.JSONException: JSONObject["widgetClassName"] not found."
No tags attached.
related to defect 00208703.0MP14 closed AugustoMauch Error when adding widget with admin others 
related to defect 0025759 acknowledged Triage Platform Base admin others widget doesn't save params 1st time 
related to defect 00263963.0PR14Q2 closed alostale When you check a role as "portal user" that role can not see the widgets 
txt error_trace.txt (11,812) 2014-02-14 14:22
https://issues.openbravo.com/file_download.php?file_id=6704&type=bug
Issue History
2014-02-14 14:22jecharriNew Issue
2014-02-14 14:22jecharriAssigned To => AugustoMauch
2014-02-14 14:22jecharriFile Added: error_trace.txt
2014-02-14 14:22jecharriWeb browser => Google Chrome
2014-02-14 14:22jecharriModules => Core
2014-02-14 14:22jecharriResolution time => 1392678000
2014-02-14 14:22jecharriTriggers an Emergency Pack => No
2014-02-14 14:25AugustoMauchAssigned ToAugustoMauch => shankarb
2014-02-18 15:27alostaleRelationship addedrelated to 0020870
2014-02-18 16:27alostaleAssigned Toshankarb => alostale
2014-02-18 16:34alostaleNote Added: 0064324
2014-02-18 16:38alostaleReview Assigned To => shankarb
2014-02-18 16:38alostaleWeb browserGoogle Chrome => Google Chrome
2014-02-18 16:40hgbotCheckin
2014-02-18 16:40hgbotNote Added: 0064325
2014-02-18 16:40hgbotStatusnew => resolved
2014-02-18 16:40hgbotResolutionopen => fixed
2014-02-18 16:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/6e74c0a22769f683ae89bf41ea6fd591bef2dc12 [^]
2014-02-18 16:51alostaleRelationship addedrelated to 0025759
2014-02-19 15:12hudsonbotCheckin
2014-02-19 15:12hudsonbotNote Added: 0064365
2014-02-27 06:40shankarbNote Added: 0064639
2014-02-27 06:40shankarbStatusresolved => closed
2014-02-27 06:40shankarbFixed in Version => 3.0MP32
2014-04-28 11:33alostaleRelationship addedrelated to 0026396

Notes
(0064324)
alostale   
2014-02-18 16:34   
There are 2 problems:

1. There is a cache of available widgets which is correctly updated and retrieves different widgets in own workspace and when administrating others. This cache should be reflected in the widget drop down list, but it is not correctly updated. So currently, with Openbravo user, group admin role:
  a. If 1st add widget is opened and later admin others User Defined HTML widget is shown though it doesn't work when admin others.
  b. If 1st is opened admin others, the widget doesn't appear, but it doesn't appear when going back to standard workspace.

2. When fixing issue 0020870, widgets with mandatory parameters without default value were removed from admin others widget list (User Defined HTML widget is one of these)

Proposed solution is to fix both issues.

Test plan includes no regression for issue 0020870
(0064325)
hgbot   
2014-02-18 16:40   
Repository: erp/devel/pi
Changeset: 6e74c0a22769f683ae89bf41ea6fd591bef2dc12
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Feb 18 16:39:11 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/6e74c0a22769f683ae89bf41ea6fd591bef2dc12 [^]

fixed bug 25741: widget admin failed in some circumstances

---
M modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoActionHandler.java
M modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoComponent.java
M modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-myopenbravo.js
---
(0064365)
hudsonbot   
2014-02-19 15:12   
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/d80214f6d50a [^]
Maturity status: Test
(0064639)
shankarb   
2014-02-27 06:40   
Code reviewed and verified in pi changeset b2b40bda6f96.