Gitlab CSE Unil

Commit e79bb613 authored by M. Chardon's avatar M. Chardon
Browse files

bug rendu id null on save

parent 2ceecfdd
......@@ -613,7 +613,6 @@ class audioannotation_assignement {
}
}
//if ($audioannotation->id > 0 && $audioannotation->recordagain || $audioannotation->id == null) {
//enregistrement des fichiers
try {
$hasSoundRecord = false;
......@@ -668,12 +667,11 @@ class audioannotation_assignement {
$devoir->flasherror = 'Erreur de chargement de fichier. Fichier probablement corrompu.';
} catch (Exception $exc) {
$this->deleteAssignementPartError($rendu);
$devoir->flasherror = 'Erreur delors de l\'enregistrement du fichier.';
$devoir->flasherror = 'Erreur lors de l\'enregistrement du fichier.';
}
if ($hasSoundRecord) {
if ($rendu && $hasSoundRecord) {
editor::delAllAnnotation($rendu->id);
}
//}
if ($rendu && array_key_exists($this::ANNEXES . $i, $formDataArr)) {
file_save_draft_area_files($formDataArr[$this::ANNEXES . $i], $this->context->id, AUDIOANNOT_MODNAME_COMPLETE, $this::ATTACHMENT, $rendu->id, array('subdirs' => 0, 'maxbytes' => 10485760, 'maxfiles' => 5));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment