[OBUIAPP] getParameterFixedValue public method must return an Object instead of String.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Wed, 02 Feb 2011 18:47:34 +0100
changeset 10338 74206cdb4aed
parent 10337 5f8541ceef39
child 10339 564ddb483f4f
[OBUIAPP] getParameterFixedValue public method must return an Object instead of String.
modules/org.openbravo.client.application/src/org/openbravo/client/application/ParameterUtils.java
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/ParameterUtils.java	Wed Feb 02 18:34:54 2011 +0100
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/ParameterUtils.java	Wed Feb 02 18:47:34 2011 +0100
@@ -122,10 +122,10 @@
    *          the parameter we want to get the Fixed Value from
    * @return the Fixed Value of the parameter
    */
-  public static String getParameterFixedValue(Map<String, String> parameters, Parameter parameter) {
+  public static Object getParameterFixedValue(Map<String, String> parameters, Parameter parameter) {
     if (parameter.isEvaluateFixedValue()) {
       try {
-        return (String) getJSExpressionResult(parameters, null, parameter.getFixedValue());
+        return getJSExpressionResult(parameters, null, parameter.getFixedValue());
       } catch (Exception e) {
         // log.error(e.getMessage(), e);
         return null;