Browse Source

Fix create CSV banque

stany.ferer 1 year ago
parent
commit
524b55370c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      core/submit/cms.compte-upload.php

+ 3 - 2
core/submit/cms.compte-upload.php

@@ -53,7 +53,6 @@ if (core::ifPost("from") AND core::getPost("from") == "compte-upload") {
 
             // Création du CSV
             json::create("banque-csv");
-            json::create("banque-lignes-".core::getPost("add"));
 
             $nbLignes = banque::recordLignes($csvValue, core::getPost("add"));
 
@@ -73,9 +72,11 @@ if (core::ifPost("from") AND core::getPost("from") == "compte-upload") {
                 "log" => $log
             ));
             historique::recordAlert("SUCCESS");
-
             alert::recSuccess($log);
 
+            // Création du CSV
+            json::create("banque-lignes-".core::getPost("add"));
+
             header("Location: /compte-".core::getPost("add").".html");
             exit();
         } else {