Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019524Openbravo ERPA. Platformpublic2012-01-19 15:252012-03-02 15:35
jecharri 
AugustoMauch 
highminoralways
closedfixed 
5
pi 
3.0MP93.0MP9 
Core
No
0019524: Problems with window personalization
I will explain in steps to reproduce.
As "Group Admin" go to window "Business Partner"
-Select "Healthy Food Supermarkets, Co." partner.
-Save the view clicking in the button "Save View" from the toolbar.
-Close the window

After that, go to window "Goods shipment":
-select one record for BP "Alimentos y Supermercados, S.A."
-click in the link of "Business Partner" field to navigate to the Business Partner window.
-When you are in the window "Business Partner", with record "Alimentos y Supermercados S.A." selected, load the view that you have saved before.

You will see that the data of the tab "Customer" is incorrect (You see the information related to the BP "Healthy Food Supermarkets, Co.") [image.png]
No tags attached.
related to defect 00194963.0MP10 closed alostale Form personalization tool is not working correctly with users 
png image.png (132,501) 2012-01-19 15:25
https://issues.openbravo.com/file_download.php?file_id=4918&type=bug
png
Issue History
2012-01-19 15:25jecharriNew Issue
2012-01-19 15:25jecharriAssigned To => alostale
2012-01-19 15:25jecharriFile Added: image.png
2012-01-19 15:25jecharriModules => Core
2012-01-19 15:25jecharriResolution time => 1333749600
2012-01-19 15:25jecharriRelationship addedrelated to 0019496
2012-02-02 15:48jecharriSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3126#r3126
2012-02-06 10:02alostaleAssigned Toalostale => AugustoMauch
2012-02-08 16:09hgbotCheckin
2012-02-08 16:09hgbotNote Added: 0044929
2012-02-08 16:09hgbotStatusnew => resolved
2012-02-08 16:09hgbotResolutionopen => fixed
2012-02-08 16:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/902c5591e1cb49ae1305831494a66c50f3a9d8df [^]
2012-02-08 16:15AugustoMauchNote Added: 0044930
2012-02-08 16:17AugustoMauchNote Added: 0044931
2012-02-10 07:32mtaalNote Added: 0044985
2012-02-10 07:32mtaalStatusresolved => closed
2012-02-10 07:32mtaalFixed in Version => 3.0MP9
2012-03-02 15:35hudsonbotCheckin
2012-03-02 15:35hudsonbotNote Added: 0045775

Notes
(0044929)
hgbot   
2012-02-08 16:09   
Repository: erp/devel/pi
Changeset: 902c5591e1cb49ae1305831494a66c50f3a9d8df
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Feb 08 16:08:34 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/902c5591e1cb49ae1305831494a66c50f3a9d8df [^]

Fixes issue 19524: Selected record info is no longer stored when saving views

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0044930)
AugustoMauch   
2012-02-08 16:15   
When saving a view, although the info about the selected record was not being stored for the header tab, it was implicitly stored in the filter criteria of the sub tabs.

I have modified this criteria so that it is equal than the one used the a window is opened for the first time (parent tab identifier = -1).

This is not only done when saving a view (getViewState), but also when a view is selected (setViewState), to make sure that this solution works even for views that were created before the fix was applied.
(0044931)
AugustoMauch   
2012-02-08 16:17   
Test plan:
- I have tested this solution with views that were saved before applying the fix and with views create after the fix was active.

Both tests have worked as expected and these changes should only affect the saving and loading of views, so I think that the regression risk is low.
(0044985)
mtaal   
2012-02-10 07:32   
Reviewed and tested
(0045775)
hudsonbot   
2012-03-02 15:35   
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/544d64e0c159 [^]

Maturity status: Test