Merge branch 'MDL-55113-30' of git://github.com/dpalou/moodle into MOODLE_30_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2016-07-05 12:22:00 +02:00
2 changed files with 2 additions and 2 deletions
@@ -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);
+1 -1
View File
@@ -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;