MDL-60820 workshop: Fix default value of submissiontypefile
This commit is contained in:
@@ -154,7 +154,7 @@ class workshop_summary_exporter extends exporter {
|
||||
),
|
||||
'submissiontypefile' => array (
|
||||
'type' => PARAM_INT,
|
||||
'default' => 2,
|
||||
'default' => 1,
|
||||
'description' => 'Indicates whether a file upload is required as part of each submission. ' .
|
||||
'0 for no, 1 for optional, 2 for required.',
|
||||
'optional' => true
|
||||
|
||||
@@ -79,7 +79,7 @@ function xmldb_workshop_upgrade($oldversion) {
|
||||
$dbman->add_field($table, $field);
|
||||
}
|
||||
|
||||
$field = new xmldb_field('submissiontypefile', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, '2',
|
||||
$field = new xmldb_field('submissiontypefile', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, '1',
|
||||
'submissiontypetext');
|
||||
|
||||
// Conditionally launch add field submissiontypefile.
|
||||
|
||||
Reference in New Issue
Block a user