details: https://code.openbravo.com/erp/devel/pi/rev/3995e2e04203
changeset: 15113:3995e2e04203
user: Martin Taal <martin.taal <at> openbravo.com>
date: Wed Jan 11 11:16:29 2012 +0100
summary: Related to issue 19422: Grid personalization not stored
Only use form/grid settings if there is no saved view
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
| 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r fe6c4992e9bc -r 3995e2e04203
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
Wed Jan 11 11:07:29 2012 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
Wed Jan 11 11:16:29 2012 +0100
@@ -260,7 +260,9 @@
// maybe do this in a separate thread
if (defaultView) {
OB.Personalization.applyViewDefinition(defaultView.personalizationId,
defaultView.viewDefinition, this);
- } else {
+ } else if (!this.getClass().personalization.views) {
+ // only apply the default form/grid if there are no views
+ // otherwise you get strange interference
// check the default form and grid viewstates
length = this.views.length;
for (i = 0; i < length; i++) {
@@ -315,8 +317,8 @@
defaultView.viewDefinition[tabId]) {
return defaultView.viewDefinition[tabId].grid;
}
-
- if (this.viewState && this.viewState[tabId]) {
+
+ if ((!personalization || !personalization.views) && this.viewState &&
this.viewState[tabId]) {
return this.viewState[tabId];
}
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits