|
@@ -1969,7 +1969,7 @@ var exercises = [ '; // '
|
|
|
} // foreach ($iassign_statement as $iassign)
|
|
|
}
|
|
|
$param->iassign_ilmid = 0;
|
|
|
- $param->filesid = 0;
|
|
|
+ $param->file = 0;
|
|
|
$param->fileold = 0;
|
|
|
$param->filename = "";
|
|
|
$param->grade = $iassign_data->grade;
|
|
@@ -2073,7 +2073,8 @@ var exercises = [ '; // '
|
|
|
$param->iassign_ilmid = $iassign_statement_current->iassign_ilmid; // define iLM ID to be used to define 'select' on 'iassign_form.php'
|
|
|
|
|
|
$param->fileold = 0;
|
|
|
- $param->filesid = 0; //TODO Criar campo 'iassign_statement.filesid' para registar 'files.id' - abaixo faz '$file->get_id();'
|
|
|
+ $param->filesid = 0;
|
|
|
+ $param->file = 0; //TODO Criar campo 'iassign_statement.filesid' para registar 'files.id' - abaixo faz '$file->get_id();'
|
|
|
$param->filename = '';
|
|
|
$param->grade = $iassign_statement_current->grade;
|
|
|
$param->timecreated = $iassign_statement_current->timecreated; // oculto
|
|
@@ -2095,7 +2096,7 @@ var exercises = [ '; // '
|
|
|
foreach ($files as $file) {
|
|
|
if ($file->get_filename() != '.') {
|
|
|
$param->filename = $file->get_filename();
|
|
|
- $param->filesid = $file->get_id();
|
|
|
+ $param->file = $file->get_id();
|
|
|
$param->fileold = $file->get_id();
|
|
|
$COURSE->iassign_file_id = $file->get_id();
|
|
|
}
|