Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix EZP-24021: Link is wrong with non-main nodes using 'subtree_array' #190

Merged
merged 1 commit into from
Mar 16, 2015

Conversation

yannickroger
Copy link
Contributor

Link: https://jira.ez.no/browse/EZP-24021

Description

When displaying an object that has more than one position, when displaying a node that is not the main one, the link provided is not the right one . This is because the offset used to select the solr doc representing the node is wrong.

Note: The customer who reported this issue and provided this patch said it introduced some side effects. I was not able to find any. We asked for some feedback but he didn't reply yet.

Test

Manual test

@dpobel
Copy link
Contributor

dpobel commented Mar 12, 2015

just a CS nitpick, shouldn't it be $mainNodeIdx + 1 instead of $mainNodeIdx+1
besides that, +1 (or "+ 1" ;))

@andrerom
Copy link
Contributor

+1 besides above comment :)

@yannickroger yannickroger force-pushed the ezp-24021-subtree_array_main_nodes branch from 33ca406 to dfd510a Compare March 13, 2015 15:34
@yannickroger
Copy link
Contributor Author

CS fixed, will merge soon

yannickroger added a commit that referenced this pull request Mar 16, 2015
…odes

Fix EZP-24021: Link is wrong with non-main nodes using 'subtree_array'
@yannickroger yannickroger merged commit d6f40c1 into master Mar 16, 2015
@yannickroger yannickroger deleted the ezp-24021-subtree_array_main_nodes branch March 16, 2015 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants