Skip to content

Commit

Permalink
Merge pull request #125 from k-soze/patch-2
Browse files Browse the repository at this point in the history
Correction for OData v4
  • Loading branch information
devnixs committed Sep 2, 2019
2 parents ace615a + 3389a6a commit 7f438f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/odataexpandpredicate.js
Expand Up @@ -81,7 +81,7 @@ factory('$odataExpandPredicate', ['$odataPredicate', '$odataBinaryOperation', '$
for (var option in this.options) {
if (this.options[option].length) {
if (option === 'filter') {
sub.push("$filter=" + ODataPredicate.and(this.options.filter).execute(this.isv4, true));
sub.push("$filter=" + ODataPredicate.and(this.options.filter).execute(this.context.isv4, true));
} else {
sub.push("$" + option + "=" + this.options[option].join(','));
}
Expand All @@ -100,4 +100,4 @@ factory('$odataExpandPredicate', ['$odataPredicate', '$odataBinaryOperation', '$
};

return ODataExpandPredicate;
}]);
}]);

0 comments on commit 7f438f4

Please sign in to comment.