details:   https://code.openbravo.com/erp/devel/pi/rev/86b92ceba655
changeset: 15114:86b92ceba655
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Wed Jan 11 11:33:06 2012 +0100
summary:   Fixes issue 19448: When applying a saved view with a new form layout 
disabled fields are shown as editable, selector fields loose their value
As a solution always move back to grid view and not form view, this is better 
also because there can be no record selected giving an empty form which
is not even in new mode

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views.js
 |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r 3995e2e04203 -r 86b92ceba655 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views.js
       Wed Jan 11 11:16:29 2012 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views.js
       Wed Jan 11 11:33:06 2012 +0100
@@ -142,6 +142,12 @@
       if (view.childTabSet && viewTabDefinition.selectedTab >= 0) {
         view.childTabSet.selectTab(viewTabDefinition.selectedTab);
       }
+
+      // never show the form as this gives unpredictable results 
+      // if there is no record selected etc.
+      if (view.isShowingForm) {
+        view.switchFormGridVisibility();
+      }
       
       if (viewTabDefinition.grid) {
         view.viewGrid.setViewState(viewTabDefinition.grid);

------------------------------------------------------------------------------
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

Reply via email to