fixed export to lims

This commit is contained in:
2026-09-22 15:27:35 +02:00
parent 955c760756
commit bb2ebcc122
+4 -4
View File
@@ -845,13 +845,13 @@ try {
$errFileToSave = $errName;
}
// Segna la riga come errore ('x') e registra il log_file, senza lasciarla 'l'
// Segna la riga come errore ('x') e registra il log_file, senza lasciarla 'l'
if ($errIddatadb !== 'unknown') {
try {
$up = $pdo->prepare("UPDATE datadb SET status = 'x', log_file = :log_file WHERE iddatadb = :iddatadb");
$up->execute(['log_file' => $errFileToSave, 'iddatadb' => $errIddatadb]);
} catch (Exception $ignore) { /* non bloccare la risposta d'errore */ }
}
} catch (Exception $ignore) { /* non bloccare la risposta d'errore */
}
}
// Indice di lotto: esito KO di questa commessa
@@ -864,7 +864,7 @@ try {
echo json_encode([
"success" => false,
"message" => "Export failed: " . $e->getMessage(),
"errorLog" => $logDir . $errName,
"errorLog" => $logDir . $errFileToSave,
"logFiles" => [
"step5_create" => $logFileStep5 ?? null,
"step5_2_photos" => $logFilePhotos ?? null,