#1798 - Fix automatic query label set on nested secondary query when using profileLocation

This commit is contained in:
rob bygrave
2019-08-19 23:15:27 +12:00
parent 0d175557b0
commit 21a3f322e1
4 changed files with 17 additions and 3 deletions
@@ -380,6 +380,12 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
return null;
}
@Override
public void setProfilePath(String label, String relativePath, ProfileLocation profileLocation) {
this.profileLocation = profileLocation;
this.label = ((profileLocation == null) ? label : profileLocation.label()) + "_" + relativePath;
}
@Override
public Query<T> setLabel(String label) {
this.label = label;