details:   https://code.openbravo.com/erp/devel/pi/rev/07970979e44d
changeset: 28698:07970979e44d
user:      Naroa Iriarte <naroa.iriarte <at> openbravo.com>
date:      Fri Mar 04 14:37:26 2016 +0100
summary:   Fixed issue 32151: It wasnt possible configure text referenced cols. 
properly.

It was not possible to configure the Allow Filtering property in colums that 
used Text reference.
The problem was in the UIDefinition.removeAttributeFromString.

Here the canSort and canFilter properties were being deleted and that was not 
correct, because in the case of
the "help" column of the Module window, for example, when the method was 
invoked, it was only desired to remove
the "canSort" property and not the canFilter.
The method has been changed, now, the passed String argument is the one which 
will be deleted instead of deleting
canSort or canFilter directly.

diffstat:

 
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java
 |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r d7b14fb65c2b -r 07970979e44d 
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java
--- 
a/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java
   Fri Mar 04 08:51:01 2016 +0100
+++ 
b/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java
   Fri Mar 04 14:37:26 2016 +0100
@@ -471,8 +471,7 @@
     if (result.indexOf(attr) != -1) {
       // If there is a previous 'canSort' or 'canFilter' set, remove it to 
avoid collision when the
       // new one is set later
-      result = result.replaceAll("(,)( *?)(canSort)( *?)(:)( *?)(false|true)( 
*?)", "");
-      result = result.replaceAll("(,)( *?)(canFilter)( *?)(:)( 
*?)(false|true)( *?)", "");
+      result = result.replaceAll("(,)( *?)(" + attr + ")( *?)(:)( 
*?)(false|true)( *?)", "");
     }
     return result;
 

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to