From 339a1658cd9bfa5e322a01c45aa0a1df67e3a842 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 27 Jan 2014 17:35:27 -0800 Subject: fix(filterFilter): don't interpret dots in predicate object fields as paths Closes #6005 Closes #6009 --- src/ng/filter/filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ng') diff --git a/src/ng/filter/filter.js b/src/ng/filter/filter.js index 7720bb13..eabe84a7 100644 --- a/src/ng/filter/filter.js +++ b/src/ng/filter/filter.js @@ -188,7 +188,7 @@ function filterFilter() { (function(path) { if (typeof expression[path] == 'undefined') return; predicates.push(function(value) { - return search(path == '$' ? value : getter(value, path), expression[path]); + return search(path == '$' ? value : (value && value[path]), expression[path]); }); })(key); } -- cgit v1.2.3