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
305bc23d
Commit
305bc23d
authored
Jul 22, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #465 from edx/peter-fogg/fix-stud-485
Correctly persist checklist settings.
parents
e6fd3b38
d87dba9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
cms/djangoapps/contentstore/features/checklists.feature
+1
-2
cms/djangoapps/contentstore/features/checklists.py
+1
-1
cms/djangoapps/contentstore/views/checklist.py
+3
-0
No files found.
cms/djangoapps/contentstore/features/checklists.feature
View file @
305bc23d
...
...
@@ -8,9 +8,8 @@ Feature: Course checklists
Scenario
:
A
course author can mark tasks as complete
Given
I have opened Checklists
Then
I can check and uncheck tasks in a checklist
And
They are correctly selected after
I reload
the page
And
They are correctly selected after
reloading
the page
@skip
Scenario
:
A
task can link to a location within Studio
Given
I have opened Checklists
When
I select a link to the course outline
...
...
cms/djangoapps/contentstore/features/checklists.py
View file @
305bc23d
...
...
@@ -45,7 +45,7 @@ def i_can_check_and_uncheck_tasks(step):
verifyChecklist2Status
(
2
,
7
,
29
)
@step
(
'They are correctly selected after
I reload
the page$'
)
@step
(
'They are correctly selected after
reloading
the page$'
)
def
tasks_correctly_selected_after_reload
(
step
):
reload_the_page
(
step
)
verifyChecklist2Status
(
2
,
7
,
29
)
...
...
cms/djangoapps/contentstore/views/checklist.py
View file @
305bc23d
...
...
@@ -37,6 +37,7 @@ def get_checklists(request, org, course, name):
checklists
,
modified
=
expand_checklist_action_urls
(
course_module
)
if
copied
or
modified
:
course_module
.
save
()
modulestore
.
update_metadata
(
location
,
own_metadata
(
course_module
))
return
render_to_response
(
'checklists.html'
,
{
...
...
@@ -69,6 +70,7 @@ def update_checklist(request, org, course, name, checklist_index=None):
# seeming noop which triggers kvs to record that the metadata is not default
course_module
.
checklists
=
course_module
.
checklists
checklists
,
_
=
expand_checklist_action_urls
(
course_module
)
course_module
.
save
()
modulestore
.
update_metadata
(
location
,
own_metadata
(
course_module
))
return
JsonResponse
(
checklists
[
index
])
else
:
...
...
@@ -79,6 +81,7 @@ def update_checklist(request, org, course, name, checklist_index=None):
# In the JavaScript view initialize method, we do a fetch to get all the checklists.
checklists
,
modified
=
expand_checklist_action_urls
(
course_module
)
if
modified
:
course_module
.
save
()
modulestore
.
update_metadata
(
location
,
own_metadata
(
course_module
))
return
JsonResponse
(
checklists
)
...
...
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