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
ad3b9274
Commit
ad3b9274
authored
9 years ago
by
Davorin Sego
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix library content module
parent
95e4cf90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
common/lib/xmodule/xmodule/library_content_module.py
+5
-5
No files found.
common/lib/xmodule/xmodule/library_content_module.py
View file @
ad3b9274
...
...
@@ -221,11 +221,6 @@ class LibraryContentModule(LibraryContentFields, XModule, StudioEditableModule):
block_keys
=
self
.
make_selection
(
self
.
selected
,
self
.
children
,
self
.
max_count
,
"random"
)
selected
=
block_keys
[
'selected'
]
# Save our selections to the user state, to ensure consistency:
self
.
selected
=
list
(
selected
)
# TODO: this doesn't save from the LMS "Progress" page.
# Cache the results
self
.
_selected_set
=
selected
# pylint: disable=attribute-defined-outside-init
# Publish events for analytics purposes:
lib_tools
=
self
.
runtime
.
service
(
self
,
'library_tools'
)
format_block_keys
=
lambda
keys
:
lib_tools
.
create_block_analytics_summary
(
self
.
location
.
course_key
,
keys
)
...
...
@@ -254,6 +249,11 @@ class LibraryContentModule(LibraryContentFields, XModule, StudioEditableModule):
added
=
format_block_keys
(
block_keys
[
'added'
])
)
# Save our selections to the user state, to ensure consistency:
self
.
selected
=
list
(
selected
)
# TODO: this doesn't save from the LMS "Progress" page.
# Cache the results
self
.
_selected_set
=
selected
# pylint: disable=attribute-defined-outside-init
return
selected
def
_get_selected_child_blocks
(
self
):
...
...
This diff is collapsed.
Click to expand it.
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