Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0042260Openbravo ERPA. Platformpublic2019-08-23 13:162019-12-23 16:46
AugustoMauch 
AugustoMauch 
normalcriticalhave not tried
closedfixed 
5
 
3.0PR19Q3.33.0PR19Q3.3 
caristu
Core
No
0042260: Extra widget instances are created if permission to widget class is removed
If access is removed from a widget, when there are already existing widget instances for that widget, each time widgets are refreshed new widget instances will be created
Count the number of widget instances in you development environment:
  select count(*) from obkmo_widget_instance

As System Admin:
- Open the Widget window, select the Welcome to Openbravo 3 widget
- Uncheck its Enable for All Users flag, set its module in development if needed

As F&B Admin:
- Open the Role window, select the F&B International Group Admin
- In the Widget Class Access subtab, remove the entry for the Welcome to Openbravo 3 widget

Restart the server (list of available widget classes is cached)

Log in with the F&B Admin role

Check that each time the Refresh button in the Manage Workspace is clicked, the number of widget instances increases.
No tags attached.
blocks defect 0041684 closed AugustoMauch Extra widget instances are created if permission to widget class is removed 
Issue History
2019-11-12 16:12alostaleTypedefect => backport
2019-11-12 16:12alostaleTarget Version => 3.0PR19Q4
2019-11-12 16:14alostaleFixed in SCM revisionhttps://code.openbravo.com/erp/devel/pi/rev/f8c27555c37ca9951d4a7227b20d5daed06ddfc7 [^] =>
2019-11-12 16:14alostaleTarget Version3.0PR19Q4 => 3.0PR19Q3.3
2019-11-12 16:14alostaleAssigned ToAugustoMauch => alostale
2019-11-12 16:14alostaleAssigned Toalostale => AugustoMauch
2019-11-12 16:16hgbotCheckin
2019-11-12 16:16hgbotNote Added: 0115558
2019-11-12 16:16hgbotStatusscheduled => resolved
2019-11-12 16:16hgbotResolutionopen => fixed
2019-11-12 16:16hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR19Q3.3/rev/8c330a2fa886e214b04e340e8a08ea4a78a5fb08 [^]
2019-12-23 16:46caristuNote Added: 0116489
2019-12-23 16:46caristuStatusresolved => closed
2019-12-23 16:46caristuFixed in Version => 3.0PR19Q3.3

Notes
(0115558)
hgbot   
2019-11-12 16:16   
Repository: erp/backports/3.0PR19Q3.3
Changeset: 8c330a2fa886e214b04e340e8a08ea4a78a5fb08
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Aug 23 14:18:44 2019 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR19Q3.3/rev/8c330a2fa886e214b04e340e8a08ea4a78a5fb08 [^]

Fixes issue 42260: Extra widget instances are no longer created

The process that automatically creates widget instances for default widgets was not taking into
account if the user had access to the copied widget class.

---
M modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoComponent.java
---
(0116489)
caristu   
2019-12-23 16:46   
Reviewed