|
@@ -1544,6 +1544,7 @@ class iassign {
|
|
$param->name = $iassign_statement_current->name;
|
|
$param->name = $iassign_statement_current->name;
|
|
$param->oldname = $iassign_statement_current->name;
|
|
$param->oldname = $iassign_statement_current->name;
|
|
$param->type_iassign = $iassign_statement_current->type_iassign;
|
|
$param->type_iassign = $iassign_statement_current->type_iassign;
|
|
|
|
+ $param->store_all_submissions = $iassign_statement_current->store_all_submissions;
|
|
|
|
|
|
//2019: Moodle 3 uses proposition in 'textarea' as "('text' => <text>, 'format' => '')
|
|
//2019: Moodle 3 uses proposition in 'textarea' as "('text' => <text>, 'format' => '')
|
|
//2019 $param->proposition = $iassign_statement_current->proposition;
|
|
//2019 $param->proposition = $iassign_statement_current->proposition;
|
|
@@ -4264,6 +4265,7 @@ class activity {
|
|
$newentry->iassignid = $param->iassignid;
|
|
$newentry->iassignid = $param->iassignid;
|
|
$newentry->name = $param->name;
|
|
$newentry->name = $param->name;
|
|
$newentry->type_iassign = $param->type_iassign;
|
|
$newentry->type_iassign = $param->type_iassign;
|
|
|
|
+ $newentry->store_all_submissions = $param->store_all_submissions;
|
|
|
|
|
|
// $newentry->proposition = $param->proposition; // 2019/02/13 - With the use of 'editor' in 'mform', field 'proposition' is Array ( [text] => <DESCRIPTION> [format] => 1 )
|
|
// $newentry->proposition = $param->proposition; // 2019/02/13 - With the use of 'editor' in 'mform', field 'proposition' is Array ( [text] => <DESCRIPTION> [format] => 1 )
|
|
$proposition = $param->proposition;
|
|
$proposition = $param->proposition;
|
|
@@ -4476,6 +4478,7 @@ class activity {
|
|
$newentry->id = $param->iassign_id;
|
|
$newentry->id = $param->iassign_id;
|
|
$newentry->name = $param->name;
|
|
$newentry->name = $param->name;
|
|
$newentry->type_iassign = $param->type_iassign;
|
|
$newentry->type_iassign = $param->type_iassign;
|
|
|
|
+ $newentry->store_all_submissions = $param->store_all_submissions;
|
|
|
|
|
|
//2019 $newentry->proposition = $param->proposition;
|
|
//2019 $newentry->proposition = $param->proposition;
|
|
$proposition = $param->proposition;
|
|
$proposition = $param->proposition;
|
|
@@ -4832,6 +4835,8 @@ class ilm_settings {
|
|
$param->ilm_type = $iassign_ilm->type;
|
|
$param->ilm_type = $iassign_ilm->type;
|
|
$param->type = $iassign_ilm->type; // using as 'type' in ilm_handlers/html5.php
|
|
$param->type = $iassign_ilm->type; // using as 'type' in ilm_handlers/html5.php
|
|
$param->url = $iassign_ilm->url;
|
|
$param->url = $iassign_ilm->url;
|
|
|
|
+ $param->submissionbehavior = $iassign_ilm->submissionbehavior;
|
|
|
|
+ $param->editingbehavior = $iassign_ilm->editingbehavior;
|
|
|
|
|
|
// If the iLM does not present curret language => Notice: Undefined property: stdClass::$en_us in...
|
|
// If the iLM does not present curret language => Notice: Undefined property: stdClass::$en_us in...
|
|
if (!isset($description->{current_language()})) {
|
|
if (!isset($description->{current_language()})) {
|
|
@@ -4867,8 +4872,8 @@ class ilm_settings {
|
|
if (!$iassign_ilm) { // The second turn (form sended) reaches this point - Just in case (if the admin use back and forward in the browser)
|
|
if (!$iassign_ilm) { // The second turn (form sended) reaches this point - Just in case (if the admin use back and forward in the browser)
|
|
print get_string('empty_file', 'iassign') . "?<br/>\n"; //TODO warning not to use back?
|
|
print get_string('empty_file', 'iassign') . "?<br/>\n"; //TODO warning not to use back?
|
|
// echo "Sem dados<br/>"; exit;
|
|
// echo "Sem dados<br/>"; exit;
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
$description = json_decode($iassign_ilm->description);
|
|
$description = json_decode($iassign_ilm->description);
|
|
if ($iassign_ilm) {
|
|
if ($iassign_ilm) {
|
|
if ($iassign_ilm->parent == 0)
|
|
if ($iassign_ilm->parent == 0)
|