Эх сурвалжийг харах

Use real xls export instead of html table see BT#13187

jmontoyaa 7 жил өмнө
parent
commit
57984f1327

+ 3 - 1
main/inc/ajax/model.ajax.php

@@ -2203,6 +2203,9 @@ if (in_array($action, $allowed_actions)) {
 
         switch ($exportFormat) {
             case 'xls':
+                Export::arrayToXls($array, $fileName);
+                break;
+            case 'xls_html':
                 //TODO add date if exists
                 $browser = new Browser();
                 if ($browser->getPlatform() == Browser::PLATFORM_WINDOWS) {
@@ -2213,7 +2216,6 @@ if (in_array($action, $allowed_actions)) {
                 break;
             case 'csv':
             default:
-                //TODO add date if exists
                 Export::arrayToCsv($array, $fileName);
                 break;
         }