Skip to content

Commit

Permalink
fix not optional values in user_proctored_modules answer
Browse files Browse the repository at this point in the history
  • Loading branch information
MerliX committed Apr 24, 2018
1 parent c7910e0 commit 43c9a8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ public static function user_proctored_modules_returns() {
array(
'id' => new external_value(PARAM_INT, 'entry id'),
'name' => new external_value(PARAM_TEXT, 'module name'),
'url' => new external_value(PARAM_TEXT, 'module url', VALUE_OPTIONAL),
'status' => new external_value(PARAM_TEXT, 'status', VALUE_OPTIONAL),
'course_name' => new external_value(PARAM_TEXT, 'module course name', VALUE_OPTIONAL),
'url' => new external_value(PARAM_TEXT, 'module url'),
'status' => new external_value(PARAM_TEXT, 'status'),
'course_name' => new external_value(PARAM_TEXT, 'module course name'),
'time_limit_mins' => new external_value(PARAM_INT, 'module duration', VALUE_OPTIONAL),
'mode' => new external_value(PARAM_TEXT, 'module proctoring mode', VALUE_OPTIONAL),
'scheduling_required' => new external_value(PARAM_BOOL, 'module calendar mode', VALUE_OPTIONAL),
'mode' => new external_value(PARAM_TEXT, 'module proctoring mode'),
'scheduling_required' => new external_value(PARAM_BOOL, 'module calendar mode'),
'rules' => new external_single_structure(
array(
'allow_to_use_websites' => new external_value(PARAM_BOOL, 'proctoring rule', VALUE_OPTIONAL),
Expand All @@ -198,7 +198,7 @@ public static function user_proctored_modules_returns() {
'allow_wrong_gaze_direction'=> new external_value(PARAM_BOOL, 'proctoring rule', VALUE_OPTIONAL),
), 'rules set', VALUE_OPTIONAL),
'is_proctored' => new external_value(PARAM_BOOL, 'module proctored'),
'accesscode' => new external_value(PARAM_TEXT, 'module code', VALUE_OPTIONAL),
'accesscode' => new external_value(PARAM_TEXT, 'module code'),
'start' => new external_value(PARAM_INT, 'module start', VALUE_OPTIONAL),
'end' => new external_value(PARAM_INT, 'module end', VALUE_OPTIONAL),
), 'module')
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'availability_examus';
$plugin->version = 2018042400;
$plugin->version = 2018042401;
$plugin->release = 'v3.1-r1';
$plugin->requires = 2016052300;
$plugin->maturity = MATURITY_STABLE;

0 comments on commit 43c9a8c

Please sign in to comment.