Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 4351

Show
Ignore:
Timestamp:
05/23/08 14:35:57 (8 months ago)
Author:
djazayeri
Message:

Fixing #773

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/trunk/src/api/org/openmrs/util/OpenmrsUtil.java

    r4301 r4351  
    12321232                 
    12331233                                // instantiate the value of the search argument 
    1234                                 String valueAsString = search.getArgumentValue(sa.getName()); 
    1235                                 if (evalContext != null && EvaluationContext.isExpression(valueAsString)) { 
    1236                                         log.debug("found expression: " + valueAsString); 
    1237                                         Object evaluated = evalContext.evaluateExpression(valueAsString); 
     1234                                String valueAsString = sa.getValue(); 
     1235                                String testForExpression = search.getArgumentValue(sa.getName()); 
     1236                                if (evalContext != null && EvaluationContext.isExpression(testForExpression)) { 
     1237                                        log.debug("found expression: " + testForExpression); 
     1238                                        Object evaluated = evalContext.evaluateExpression(testForExpression); 
    12381239                                        if (evaluated != null) { 
    12391240                                                if (evaluated instanceof Date)