Skip to content
Snippets Groups Projects
Unverified Commit 130b9f7b authored by Raul Gallegos's avatar Raul Gallegos Committed by GitHub
Browse files

fix: contentstore next section navigation (#27112)

Fixes bug introduced by #25965 (commit dd96a2) pointed out in:

  https://github.com/edx/edx-platform/commit/dd96a2#r48570091

The next button redirect at the top of the sequence in Studio's Unit editing view
was not going to the correct location.
parent 23443c43
No related branches found
No related tags found
No related merge requests found
......@@ -587,7 +587,7 @@ def get_sibling_urls(subsection):
))
else:
try:
next_section = sections[sections.index(next(s for s in sections if s.location == section.location)) - 1]
next_section = sections[sections.index(next(s for s in sections if s.location == section.location)) + 1]
next_loc = next_section.get_children()[0].get_children()[0].location
except IndexError:
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment