From: soufiane Date: Thu, 15 Feb 2024 13:14:18 +0000 (+0100) Subject: wait #5475 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2848f112bf30b602f4f86796208973ee81e67508;p=fluidbook-toolbox.git wait #5475 @0:20 --- diff --git a/app/Http/Controllers/Admin/Operations/FluidbookPublication/StatsOperation.php b/app/Http/Controllers/Admin/Operations/FluidbookPublication/StatsOperation.php index dd97044c6..6206115f9 100644 --- a/app/Http/Controllers/Admin/Operations/FluidbookPublication/StatsOperation.php +++ b/app/Http/Controllers/Admin/Operations/FluidbookPublication/StatsOperation.php @@ -108,7 +108,7 @@ trait StatsOperation $tables = $html->find('table'); $tmpfile = Files::tempnam() . '.xlsx'; - $this->_excel($tables, $names, null, $tmpfile); + $excel = $this->_excel($tables, $names, null, $tmpfile); return response()->download($tmpfile, $name . '.xlsx')->deleteFileAfterSend(true); } @@ -199,10 +199,11 @@ trait StatsOperation } } + $excel->setActiveSheetIndex(0); + if (null !== $output) { self::_save($excel, $output); } - return $excel; }