소스 검색

Fix create CSV banque

stany.ferer 1 년 전
부모
커밋
524b55370c
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  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 {