Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
dbe388cb
Commit
dbe388cb
authored
12 years ago
by
Tim Hunt
Browse files
Options
Downloads
Patches
Plain Diff
Correct handling of fixed variants on question test edit page.
parent
07153ffa
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
questiontestedit.php
+7
-1
7 additions, 1 deletion
questiontestedit.php
with
7 additions
and
1 deletion
questiontestedit.php
+
7
−
1
View file @
dbe388cb
...
@@ -65,8 +65,14 @@ if (!is_null($testcase)) {
...
@@ -65,8 +65,14 @@ if (!is_null($testcase)) {
// Create the question usage we will use.
// Create the question usage we will use.
$quba
=
question_engine
::
make_questions_usage_by_activity
(
'qtype_stack'
,
$context
);
$quba
=
question_engine
::
make_questions_usage_by_activity
(
'qtype_stack'
,
$context
);
$quba
->
set_preferred_behaviour
(
'adaptive'
);
$quba
->
set_preferred_behaviour
(
'adaptive'
);
if
(
!
is_null
(
$seed
))
{
// This is a bit of a hack to force the question to use a particular seed,
// even if it is not one of the deployed seeds.
$question
->
seed
=
$seed
;
}
$slot
=
$quba
->
add_question
(
$question
,
$question
->
defaultmark
);
$slot
=
$quba
->
add_question
(
$question
,
$question
->
defaultmark
);
$quba
->
start_question
(
$slot
,
$seed
);
$quba
->
start_question
(
$slot
);
// Create the editing form.
// Create the editing form.
$mform
=
new
qtype_stack_question_test_form
(
$PAGE
->
url
,
$mform
=
new
qtype_stack_question_test_form
(
$PAGE
->
url
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment