details:   https://code.openbravo.com/erp/devel/pi/rev/7c3050fc5c15
changeset: 17967:7c3050fc5c15
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Mon Sep 17 16:39:03 2012 +0200
summary:   Fixes issue 21647: Fields are still readonly after switching between 
tabs

The data._readonly property was only being set when the FIC was called in EDIT 
mode, but not in CHANGE mode, that is used when the user switches between tabs.

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3add0cfef5fa -r 7c3050fc5c15 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Mon Sep 17 13:27:00 2012 +0200
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Mon Sep 17 16:39:03 2012 +0200
@@ -446,7 +446,7 @@
         finalObject.put("dynamicCols", new JSONArray(changeEventCols));
       }
 
-      if (mode.equals("EDIT") && row != null) {
+      if ((mode.equals("EDIT") || mode.equals("CHANGE")) && row != null) {
         if ((row instanceof ClientEnabled && ((ClientEnabled) row).getClient() 
!= null)) {
           final String rowClientId = ((ClientEnabled) row).getClient().getId();
           final String currentClientId = 
OBContext.getOBContext().getCurrentClient().getId();

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to