← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21064: minor fix, make sure that only simple/persisted properties goes through CriteriaQueryEngine opera...

 

------------------------------------------------------------
revno: 21064
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-11-16 09:27:15 +0700
message:
  minor fix, make sure that only simple/persisted properties goes through CriteriaQueryEngine operator test
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/CriteriaQueryEngine.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/CriteriaQueryEngine.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/CriteriaQueryEngine.java	2015-11-12 04:47:12 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/CriteriaQueryEngine.java	2015-11-16 02:27:15 +0000
@@ -181,7 +181,7 @@
                     {
                         Property property = query.getSchema().getProperty( restriction.getPath() );
 
-                        if ( property.isSimple() )
+                        if ( property.isSimple() && property.isPersisted() )
                         {
                             criterions.add( criterion );
                             criterionIterator.remove();