MDL-60820 workshop: Fix default value of submissiontypefile

This commit is contained in:
David Mudrák
2018-09-05 11:29:53 +02:00
parent c96c9601af
commit 5e2236a2f0
2 changed files with 2 additions and 2 deletions
@@ -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
+1 -1
View File
@@ -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.