Browse Source

EAGLESIX-2693 updated addDependencies to use new deps

Austin Meagher 11 years ago
parent
commit
6e4f8d9f90
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/pipeline/expressions/FieldPathExpression.js

+ 2 - 2
lib/pipeline/expressions/FieldPathExpression.js

@@ -181,9 +181,9 @@ proto.optimize = function(){
 proto.addDependencies = function addDependencies(deps){
 	if(this.path.fields[0] === "CURRENT" || this.path.fields[0] === "ROOT") {
 		if(this.path.fields.length === 1) {
-			deps[""] = 1;
+			deps.needWholeDocument = true;
 		} else {
-			deps[this.path.tail().getPath(false)] = 1;
+			deps.fields[this.path.tail().getPath(false)] = 1;
 		}
 	}
 };