Pārlūkot izejas kodu

Auto create jeson histo dossiers

stany.ferer 3 mēneši atpakaļ
vecāks
revīzija
9f952f97fc

+ 1 - 1
core/class/json.class.php

@@ -232,7 +232,7 @@ class json extends db
         return (sftp::testAccessHost()) ? "OK" : "KO";
     }
 
-    private static function create_document(string $_limited = NULL)
+    private static function create_document(?string $_limited = NULL)
     {
         $where = ($_limited == TRUE) ? " WHERE " . DB_T_DOCUMENTS . ".id_type != 3" : NULL;
 

+ 2 - 0
core/views/pages/cms.proweb-dossiers-historique-excel.php

@@ -3,6 +3,8 @@
     if(debug::isFile("debug")){
         debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
     } 
+
+    json::create("excel-proweb-dossiers");
 ?>
 <header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
     <h2 class="bd-title" id="content">