Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020870Openbravo ERP01. General setuppublic2012-06-26 13:392012-07-28 01:23
caristu 
AugustoMauch 
urgentmajoralways
closedfixed 
5
3.0MP11 
3.0MP143.0MP14 
Core
No
0020870: Error when adding widget with admin others
When adding a widget with parameters, with the Admin Others utility Openbravo returns the following error: "Can't process parameters without object instance id"
1) In workspace, use the Admin Others Option. Select the role level and choose a role.

2) Add any widget with parameters, for example the Pending Goods Receipt Widget.

3) Fill the fields and click Save
No tags attached.
related to defect 00213533.0MP14 closed AugustoMauch When a widget has a mandatory parameter without default value, it's not shown in the "Add widgets" combo 
related to defect 00257413.0PR14Q2 closed alostale Impossible to add the widget "User defined HTML Widget" 
png Screenshot from 2012-06-26 14:05:51.png (290,464) 2012-06-26 14:06
https://issues.openbravo.com/file_download.php?file_id=5331&type=bug
Issue History
2012-06-26 13:39caristuNew Issue
2012-06-26 13:39caristuAssigned To => mirurita
2012-06-26 13:39caristuModules => Core
2012-06-26 13:39caristuResolution time => 1346882400
2012-06-26 13:40caristuTag Attached: Regression
2012-06-26 13:40caristuIssue Monitored: networkb
2012-06-26 13:55plujanRegression level => Production - QA Approved
2012-06-26 13:57plujanIssue Monitored: plujan
2012-06-26 14:06caristuFile Added: Screenshot from 2012-06-26 14:05:51.png
2012-06-26 14:10miruritaAssigned Tomirurita => alostale
2012-06-26 16:03plujanTag Detached: Regression
2012-06-26 16:03plujanRegression levelProduction - QA Approved =>
2012-06-26 16:35alostaleNote Added: 0050097
2012-06-26 16:35alostalePriorityimmediate => urgent
2012-07-12 15:27guilleaerAssigned Toalostale => guilleaer
2012-07-13 14:14guilleaerNote Added: 0050566
2012-07-13 14:15guilleaerAssigned Toguilleaer => AugustoMauch
2012-07-27 12:25hgbotCheckin
2012-07-27 12:25hgbotNote Added: 0050935
2012-07-27 12:25hgbotStatusnew => resolved
2012-07-27 12:25hgbotResolutionopen => fixed
2012-07-27 12:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7d6793ea45f158c6415b97648a4c3a28887419d7 [^]
2012-07-27 13:52AugustoMauchNote Added: 0050944
2012-07-27 13:52AugustoMauchStatusresolved => closed
2012-07-27 13:52AugustoMauchFixed in Version => 3.0MP14
2012-07-28 01:23hudsonbotCheckin
2012-07-28 01:23hudsonbotNote Added: 0050961
2012-08-13 13:29AugustoMauchRelationship addedrelated to 0021353
2014-02-18 15:27alostaleRelationship addedrelated to 0025741

Notes
(0050097)
alostale   
2012-06-26 16:35   
Downgrading priority as it is not a regression: it can be reproduced in mp6.1.
(0050566)
guilleaer   
2012-07-13 14:14   
Note:
While I was working on fix this issue another issue related to Admin Others utility has appears. This new issue is reported here:

https://issues.openbravo.com/view.php?id=21071 [^]

Related to this issue:
I was working to solve it but I leave it to work in the previous issue. The problem is raised when the parameters of the widget are set, because the widget doesn't have a widget instance id. The callback to the server to set the parameters of the widget shouldn't be done until the button publish of the left dialog is clicked.
In this moment, the server will save the widget instance an their parameters.
(0050935)
hgbot   
2012-07-27 12:25   
Repository: erp/devel/pi
Changeset: 7d6793ea45f158c6415b97648a4c3a28887419d7
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Fri Jul 27 12:23:55 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7d6793ea45f158c6415b97648a4c3a28887419d7 [^]

Fixed issue 20870: Admin others works well when adding a widget with params
In Admin others, it is not supported to add widgets with at least one parameter which is mandatory and DefaultValue==null. If we try to save parameters when we are adding widgets in admin others, the widget have to be in the database to update its parameters, but the widget won't be in database until we press Publish button.
In order to avoid this problem, widgets with parameters are displayed in content_mode and the widget to add list does not show widgets with at least one parameter which is mandatory and DefaultValue==null.

---
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-widget.js
M modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
---
(0050944)
AugustoMauch   
2012-07-27 13:52   
Code reviewed and verified in pi@f119181062af
(0050961)
hudsonbot   
2012-07-28 01:23   
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/c6491bd9e10b [^]

Maturity status: Test