From a580d52a1eebebcafb6414fd002f4d77fe77ab0a Mon Sep 17 00:00:00 2001 From: jygaulier Date: Mon, 6 Nov 2023 10:47:19 +0100 Subject: [PATCH 1/2] cut sheet titles (tabnames) to 31 char (#4406) --- .../Phrasea/WorkerManager/Worker/DownloadAsyncWorker.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Alchemy/Phrasea/WorkerManager/Worker/DownloadAsyncWorker.php b/lib/Alchemy/Phrasea/WorkerManager/Worker/DownloadAsyncWorker.php index 15ff57b0e1..6496a110bc 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 From a1e7f77cdde1c9f895c63848dcdb347f79a9ef2b Mon Sep 17 00:00:00 2001 From: jygaulier Date: Wed, 8 Nov 2023 19:14:22 +0100 Subject: [PATCH 2/2] count the report (xlx) as a file (#4408) --- lib/Alchemy/Phrasea/WorkerManager/Worker/DownloadAsyncWorker.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Alchemy/Phrasea/WorkerManager/Worker/DownloadAsyncWorker.php b/lib/Alchemy/Phrasea/WorkerManager/Worker/DownloadAsyncWorker.php index 6496a110bc..f735db799f 100644 --- a/lib/Alchemy/Phrasea/WorkerManager/Worker/DownloadAsyncWorker.php +++ b/lib/Alchemy/Phrasea/WorkerManager/Worker/DownloadAsyncWorker.php @@ -370,6 +370,7 @@ public function process(array $payload) ] ] ]; + $list['count']++; $totalSize += $list['files']['report']["subdefs"]['report']["size"]; }