Pārlūkot izejas kodu

Fix presentation export not including all charts

Alan Lam 1 gadu atpakaļ
vecāks
revīzija
a53611747f
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      controllers/reports_presentation.php

+ 2 - 0
controllers/reports_presentation.php

@@ -26,6 +26,8 @@ use PhpOffice\PhpPresentation\IOFactory;
 use PhpOffice\PhpPresentation\Shape\RichText\Run;
 use PhpOffice\PhpPresentation\Shape\RichText\Run;
 use PhpOffice\PhpPresentation\Style\Alignment;
 use PhpOffice\PhpPresentation\Style\Alignment;
 
 
+$charts = array_values($charts);
+
 $presentation = new PhpPresentation(); // 960x720
 $presentation = new PhpPresentation(); // 960x720
 
 
 // Draw title slide
 // Draw title slide