Merge branch 'MDL-55113-30' of git://github.com/dpalou/moodle into MOODLE_30_STABLE
This commit is contained in:
@@ -615,7 +615,7 @@ class assign_submission_onlinetext extends assign_submission_plugin {
|
||||
* @return external_description|null
|
||||
*/
|
||||
public function get_external_parameters() {
|
||||
$editorparams = array('text' => new external_value(PARAM_TEXT, 'The text for this submission.'),
|
||||
$editorparams = array('text' => new external_value(PARAM_RAW, 'The text for this submission.'),
|
||||
'format' => new external_value(PARAM_INT, 'The format for this submission'),
|
||||
'itemid' => new external_value(PARAM_INT, 'The draft area id for files attached to the submission'));
|
||||
$editorstructure = new external_single_structure($editorparams);
|
||||
|
||||
@@ -947,7 +947,7 @@ class mod_assign_external_testcase extends externallib_advanced_testcase {
|
||||
// Now try a submission.
|
||||
$submissionpluginparams = array();
|
||||
$submissionpluginparams['files_filemanager'] = $draftidfile;
|
||||
$onlinetexteditorparams = array('text'=>'Yeeha!',
|
||||
$onlinetexteditorparams = array('text' => '<p>Yeeha!</p>',
|
||||
'format'=>1,
|
||||
'itemid'=>$draftidonlinetext);
|
||||
$submissionpluginparams['onlinetext_editor'] = $onlinetexteditorparams;
|
||||
|
||||
Reference in New Issue
Block a user