fix bug when editing profile request adding a file and no previous file exists

This commit is contained in:
Harald Bamberger
2025-10-08 14:37:25 +02:00
parent e4943e0bb8
commit 5fbcc60c67
@@ -716,13 +716,12 @@ class ProfilUpdate extends FHCAPI_Controller
private function deleteOldVersionFile($dms_id)
{
if (!isset($dms_id)) {
return true;
}
// starting the transaction
$this->db->trans_start();
if (!isset($dms_id)) {
return;
}
//? delete the file from the profilUpdate first
$profilUpdateFileDelete = $this->ProfilUpdateModel->removeFileFromProfilUpdate($dms_id);