Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
09d8dbd7
Commit
09d8dbd7
authored
Mar 26, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug when mentoring contains Answer and AnswerRecap with same name
parent
d5ea6f63
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mentoring/mentoring.py
+1
-1
mentoring/public/js/mentoring_standard_view.js
+2
-2
No files found.
mentoring/mentoring.py
View file @
09d8dbd7
...
@@ -345,7 +345,7 @@ class MentoringBlock(XBlock, StepParentMixin, StudioEditableXBlockMixin, StudioC
...
@@ -345,7 +345,7 @@ class MentoringBlock(XBlock, StepParentMixin, StudioEditableXBlockMixin, StudioC
submit_results
=
[]
submit_results
=
[]
completed
=
True
completed
=
True
for
child_id
in
self
.
children
:
for
child_id
in
self
.
steps
:
child
=
self
.
runtime
.
get_block
(
child_id
)
child
=
self
.
runtime
.
get_block
(
child_id
)
if
child
.
name
and
child
.
name
in
submissions
:
if
child
.
name
and
child
.
name
in
submissions
:
submission
=
submissions
[
child
.
name
]
submission
=
submissions
[
child
.
name
]
...
...
mentoring/public/js/mentoring_standard_view.js
View file @
09d8dbd7
...
@@ -38,8 +38,8 @@ function MentoringStandardView(runtime, element, mentoring) {
...
@@ -38,8 +38,8 @@ function MentoringStandardView(runtime, element, mentoring) {
var
children
=
mentoring
.
children
;
var
children
=
mentoring
.
children
;
for
(
var
i
=
0
;
i
<
children
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
children
.
length
;
i
++
)
{
var
child
=
children
[
i
];
var
child
=
children
[
i
];
if
(
child
&&
child
.
name
!==
undefined
)
{
if
(
child
&&
child
.
name
!==
undefined
&&
typeof
(
child
.
submit
)
!==
"undefined"
)
{
data
[
child
.
name
]
=
c
allIfExists
(
child
,
'submit'
);
data
[
child
.
name
]
=
c
hild
.
submit
(
);
}
}
}
}
var
handlerUrl
=
runtime
.
handlerUrl
(
element
,
'submit'
);
var
handlerUrl
=
runtime
.
handlerUrl
(
element
,
'submit'
);
...
...
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