Skip to content

Commit 4a86d4f

Browse files
authored
Merge pull request #20 from lushonline/19-fix-undefined-variable-$required-in-web-services-api
19 fix undefined variable $required in web services api
2 parents 909b2ed + 57d2b2a commit 4a86d4f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
services:
2323
postgres:
24-
image: postgres:12
24+
image: postgres:13
2525
env:
2626
POSTGRES_USER: "postgres"
2727
POSTGRES_HOST_AUTH_METHOD: "trust"

classes/external.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ public static function get_externalcontents_by_courses_returns() {
190190
'course' => new external_value(PARAM_INT, 'Course id'),
191191
'name' => new external_value(PARAM_RAW, 'externalcontent name'),
192192
'intro' => new external_value(PARAM_RAW, 'Summary'),
193-
'introformat' => new external_format_value('intro', 'Summary format'),
193+
'introformat' => new external_format_value('intro', VALUE_REQUIRED, 'Summary format'),
194194
'introfiles' => new external_files('Files in the introduction text'),
195195
'content' => new external_value(PARAM_RAW, 'External content content'),
196-
'contentformat' => new external_format_value('content', 'Content format'),
196+
'contentformat' => new external_format_value('content', VALUE_REQUIRED, 'Content format'),
197197
'contentfiles' => new external_files('Files in the content'),
198198
'displayoptions' => new external_value(PARAM_RAW, 'Display options'),
199199
'timemodified' => new external_value(PARAM_INT, 'Last time the externalcontent was modified'),

version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
defined('MOODLE_INTERNAL') || die();
2626

27-
$plugin->version = 2023031400;
27+
$plugin->version = 2023072400;
2828
$plugin->requires = 2021051700; // Requires this Moodle version v3.11 see https://docs.moodle.org/dev/Releases.
2929
$plugin->component = 'mod_externalcontent';
3030
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)