Skip to content
Snippets Groups Projects
Commit 274d288b authored by Nicolas Borboën's avatar Nicolas Borboën
Browse files

[fix] warning between new and edit

parent 2a291b39
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,9 @@ class PersonnalData { ...@@ -66,7 +66,9 @@ class PersonnalData {
$this->setStages(); $this->setStages();
$this->setDejacand(); $this->setDejacand();
$this->anneeFinScolarite = $postedData['anneeFin']; $this->anneeFinScolarite = $postedData['anneeFin'];
$this->fichiers = $this->setFiles($postedFiles, $postedData['files']);
$this->fichiers = $this->setFiles($postedFiles, $postedData);
} }
#endregion #endregion
...@@ -131,7 +133,11 @@ class PersonnalData { ...@@ -131,7 +133,11 @@ class PersonnalData {
if ($file['error'] != 0) { if ($file['error'] != 0) {
unset($postedFiles[$key]); unset($postedFiles[$key]);
} else { } else {
$postedFiles[$key]['id'] = $ids[$key]; // My guess is that code is only needed when editing a postulation,
// and run into warning when creating a new one. NBO 2021-01-11
if (isset($ids['files'][$key])) {
$postedFiles[$key]['id'] = $ids['files'][$key];
}
} }
} }
return $postedFiles; return $postedFiles;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment