|
@@ -5555,7 +5555,9 @@ class activity {
|
|
|
$newentry->iassignid = $param->iassignid;
|
|
|
$newentry->name = $param->name;
|
|
|
$newentry->type_iassign = $param->type_iassign;
|
|
|
- $newentry->store_all_submissions = $param->store_all_submissions;
|
|
|
+ if (!isset($param->store_all_submissions)) { // if is an old acitivity, field 'store_all_submissions' is not defined
|
|
|
+ $newentry->store_all_submissions = 0;
|
|
|
+ }
|
|
|
|
|
|
// $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;
|
|
@@ -5767,7 +5769,9 @@ class activity {
|
|
|
$newentry->id = $param->iassign_id;
|
|
|
$newentry->name = $param->name;
|
|
|
$newentry->type_iassign = $param->type_iassign;
|
|
|
- $newentry->store_all_submissions = $param->store_all_submissions;
|
|
|
+ if (!isset($param->store_all_submissions)) { // if is an old acitivity, field 'store_all_submissions' is not defined
|
|
|
+ $newentry->store_all_submissions = 0;
|
|
|
+ }
|
|
|
|
|
|
//2019 $newentry->proposition = $param->proposition;
|
|
|
$proposition = $param->proposition;
|