]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5475 @0:20
authorsoufiane <soufiane@cubedesigners.com>
Thu, 15 Feb 2024 13:14:18 +0000 (14:14 +0100)
committersoufiane <soufiane@cubedesigners.com>
Thu, 15 Feb 2024 14:14:30 +0000 (15:14 +0100)
app/Http/Controllers/Admin/Operations/FluidbookPublication/StatsOperation.php

index dd97044c60ad507b00d834956eadef8fb8e7fd84..6206115f922a3194ff5766f7dbefe869e8efbef6 100644 (file)
@@ -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;
     }