Skip to content

Commit

Permalink
Additional work for #54
Browse files Browse the repository at this point in the history
  • Loading branch information
ppadovani committed Mar 25, 2018
1 parent e047780 commit 6f80501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nested-fields-support",
"version": "6.2.2-1.0.1",
"version": "6.2.2-1.0.2",
"description": "Nested Support Plugin",
"license": "Apache-2.0",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion public/nested_support/agg_types/buckets/terms.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Terms.AggTypesBucketsTermsProvider = function(Private) {
}

// if the target aggregation is nested, refer to it by its nested location
if (agg.params.field.nestedPath) {
if ((!orderAgg.params.field.nestedPath && agg.params.field.nestedPath) || orderAgg.params.field.nestedPath !== agg.params.field.nestedPath) {
orderAggId = 'nested_' + orderAggId + '>' + orderAggId;
}

Expand Down

0 comments on commit 6f80501

Please sign in to comment.