mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-31682 - fix for online text assignments
This commit is contained in:
parent
8df0765ad1
commit
9f780282fa
@ -643,8 +643,8 @@ class mod_assign_external extends external_api {
|
||||
array(
|
||||
'name' => new external_value(PARAM_TEXT, 'field name'),
|
||||
'description' => new external_value(PARAM_TEXT, 'field description'),
|
||||
'text' => new external_value (PARAM_TEXT, 'field value'),
|
||||
'format' => new external_value (PARAM_INT, 'field format')
|
||||
'text' => new external_value (PARAM_RAW, 'field value'),
|
||||
'format' => new external_format_value ('text')
|
||||
)
|
||||
)
|
||||
, 'editorfields', VALUE_OPTIONAL
|
||||
|
@ -229,7 +229,7 @@ class mod_assign_external_testcase extends externallib_advanced_testcase {
|
||||
$submission->id = $sid;
|
||||
|
||||
$onlinetextsubmission = new stdClass();
|
||||
$onlinetextsubmission->onlinetext = "online test text";
|
||||
$onlinetextsubmission->onlinetext = "<p>online test text</p>";
|
||||
$onlinetextsubmission->onlineformat = 1;
|
||||
$onlinetextsubmission->submission = $submission->id;
|
||||
$onlinetextsubmission->assignment = $assign1->id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user