Changeset 22651


Ignore:
Timestamp:
02/09/10 12:41:14 (17 months ago)
Author:
dbutano
Message:

the method getSelectedConstraint return "attribute" when the pathconstraint is null

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mnw21/pathquery_refactor/intermine/web/main/src/org/intermine/web/logic/query/DisplayConstraint.java

    r22636 r22651  
    633633     */ 
    634634    public String getSelectedConstraint() { 
    635         if (con != null) { 
    636             if (isBagSelected()) { 
    637                 return "bag"; 
    638             } else if (isNullSelected()) { 
    639                 return "empty"; 
    640             } else if (isLoopSelected()) { 
    641                 return "loopQuery"; 
    642             } 
    643             return "attribute"; 
    644         } 
    645         return null; 
     635        if (isBagSelected()) { 
     636            return "bag"; 
     637        } else if (isNullSelected()) { 
     638            return "empty"; 
     639        } else if (isLoopSelected()) { 
     640            return "loopQuery"; 
     641        } 
     642        return "attribute"; 
    646643    } 
    647644 
Note: See TracChangeset for help on using the changeset viewer.