diff --git a/lib/Alchemy/Phrasea/WorkerManager/Worker/DownloadAsyncWorker.php b/lib/Alchemy/Phrasea/WorkerManager/Worker/DownloadAsyncWorker.php index 15ff57b0e1..f735db799f 100644 --- a/lib/Alchemy/Phrasea/WorkerManager/Worker/DownloadAsyncWorker.php +++ b/lib/Alchemy/Phrasea/WorkerManager/Worker/DownloadAsyncWorker.php @@ -139,7 +139,8 @@ public function process(array $payload) } if(!array_key_exists($databox_id, $worksheet_ref_by_db)) { // Create a new worksheet with db name - $ws = new Worksheet($spreadsheet, $this->app->getApplicationBox()->get_databox($databox_id)->get_dbname()); + $tab_name = substr($this->app->getApplicationBox()->get_databox($databox_id)->get_dbname(), 0, 31); + $ws = new Worksheet($spreadsheet, $tab_name); $spreadsheet->addSheet($ws); if(count($worksheet_ref_by_db) === 0) { // we just added the first ws, we can delete the "default" one @@ -369,6 +370,7 @@ public function process(array $payload) ] ] ]; + $list['count']++; $totalSize += $list['files']['report']["subdefs"]['report']["size"]; }