Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-utils
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
xblock-utils
Commits
48fa1a95
Commit
48fa1a95
authored
Oct 31, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor bug with preview_view feature.
parent
b4f9b511
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
xblockutils/studio_editable.py
+1
-2
No files found.
xblockutils/studio_editable.py
View file @
48fa1a95
...
@@ -468,8 +468,7 @@ class StudioContainerWithNestedXBlocksMixin(StudioContainerXBlockMixin):
...
@@ -468,8 +468,7 @@ class StudioContainerWithNestedXBlocksMixin(StudioContainerXBlockMixin):
fragment
=
Fragment
()
fragment
=
Fragment
()
for
child_id
in
self
.
children
:
for
child_id
in
self
.
children
:
child
=
self
.
runtime
.
get_block
(
child_id
)
child
=
self
.
runtime
.
get_block
(
child_id
)
view_to_render
=
'preview_view'
if
hasattr
(
child
,
'preview_view'
)
else
'student_view'
child_fragment
=
self
.
_render_child_fragment
(
child
,
context
,
'preview_view'
)
child_fragment
=
self
.
_render_child_fragment
(
child
,
context
,
view_to_render
)
fragment
.
add_frag_resources
(
child_fragment
)
fragment
.
add_frag_resources
(
child_fragment
)
children_contents
.
append
(
child_fragment
.
content
)
children_contents
.
append
(
child_fragment
.
content
)
...
...
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