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
5bc91d8a
Commit
5bc91d8a
authored
Jun 10, 2013
by
Christina Roberts
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #117 from edx/bug/christina/max-attempts
Allow a value of 0 for max attempts. STUD-264.
parents
3fe830a8
b0b3062a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cms/djangoapps/contentstore/features/problem-editor.feature
+1
-1
common/lib/xmodule/xmodule/capa_module.py
+1
-1
No files found.
cms/djangoapps/contentstore/features/problem-editor.feature
View file @
5bc91d8a
...
...
@@ -52,7 +52,7 @@ Feature: Problem Editor
Scenario
:
User cannot type out of range values in an integer number field
Given
I have created a Blank Common Problem
And
I edit and select Settings
Then
if I set the max attempts to
"-3"
, it displays initially as
"-3"
, and is persisted as
"
1
"
Then
if I set the max attempts to
"-3"
, it displays initially as
"-3"
, and is persisted as
"
0
"
Scenario
:
Settings changes are not saved on Cancel
Given
I have created a Blank Common Problem
...
...
common/lib/xmodule/xmodule/capa_module.py
View file @
5bc91d8a
...
...
@@ -69,7 +69,7 @@ class CapaFields(object):
max_attempts
=
StringyInteger
(
display_name
=
"Maximum Attempts"
,
help
=
"Defines the number of times a student can try to answer this problem. If the value is not set, infinite attempts are allowed."
,
values
=
{
"min"
:
1
},
scope
=
Scope
.
settings
values
=
{
"min"
:
0
},
scope
=
Scope
.
settings
)
due
=
Date
(
help
=
"Date that this problem is due by"
,
scope
=
Scope
.
settings
)
graceperiod
=
Timedelta
(
help
=
"Amount of time after the due date that submissions will be accepted"
,
scope
=
Scope
.
settings
)
...
...
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