Skip to content

Commit

Permalink
Merge pull request #190 from ezsystems/ezp-24021-subtree_array_main_n…
Browse files Browse the repository at this point in the history
…odes

Fix EZP-24021: Link is wrong with non-main nodes using 'subtree_array'
  • Loading branch information
yannickroger committed Mar 16, 2015
2 parents d54863b + dfd510a commit d6f40c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion search/plugins/ezsolr/ezsolr.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ protected function getNodeID( $doc )
{
array_unshift( $docVisibilities, $docVisibilities[$mainNodeIdx] );
array_unshift( $docPathStrings, $docPathStrings[$mainNodeIdx] );
unset( $docVisibilities[$mainNodeIdx], $docPathStrings[$mainNodeIdx] );
// adding +1 to indexing because of array_unshift
unset( $docVisibilities[$mainNodeIdx + 1], $docPathStrings[$mainNodeIdx + 1] );
}
}
$locationFilter = isset( $this->postSearchProcessingData['subtree_array'] ) ? $this->postSearchProcessingData['subtree_array'] : array();
Expand Down

0 comments on commit d6f40c1

Please sign in to comment.