Fix #18916 : mass stock movements not displayed if error while adding line
@@ -443,6 +443,7 @@ if ($action == 'confirm_deletefile' && $confirm == 'yes') {
*/
$now = dol_now();
+$error = 0;
$form = new Form($db);
$formproduct = new FormProduct($db);