Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
a47b2be8
Commit
a47b2be8
authored
Oct 14, 2012
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set position=0 when position=None. Discuss with Dave O.
parent
4ac1a741
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lms/djangoapps/courseware/views.py
+4
-3
No files found.
lms/djangoapps/courseware/views.py
View file @
a47b2be8
...
@@ -325,10 +325,11 @@ def jump_to(request, course_id, location):
...
@@ -325,10 +325,11 @@ def jump_to(request, course_id, location):
except
NoPathToItem
:
except
NoPathToItem
:
raise
Http404
(
"This location is not in any class: {0}"
.
format
(
location
))
raise
Http404
(
"This location is not in any class: {0}"
.
format
(
location
))
# cdodge: the CAS is generating a link to the LMS for 'subsections' (aka sequentials)
# and there is no associated 'Position' for this. The above Path_to_location is returning None for Position
# however, this ends up producing a 404 on the redirect
if
position
is
None
:
if
position
is
None
:
return
redirect
(
'courseware_section'
,
course_id
=
course_id
,
position
=
0
chapter
=
chapter
,
section
=
section
)
# Rely on index to do all error handling and access control.
# Rely on index to do all error handling and access control.
return
redirect
(
'courseware_position'
,
return
redirect
(
'courseware_position'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment