Sfoglia il codice sorgente

fixed export to html

Piotr Labudda 7 anni fa
parent
commit
fba7815c07
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      SE/se-lib/Route/ViewTableAjax.php

+ 4 - 0
SE/se-lib/Route/ViewTableAjax.php

@@ -1399,6 +1399,10 @@ class Route_ViewTableAjax extends RouteBase {
 		die("Nieobsługiwany format danych.");
 	}
 	function _exportToHTML($acl, $items, $toExportFields, $format = 'html') {
+		$labels = array();
+		foreach ($toExportFields as $fieldName) {
+			$labels[ $fieldName ] = $acl->getFieldLabel($fieldName);
+		}
 		UI::gora();
 		echo UI::h('table', ['class'=>'table table-bordered table-hover'], [
 			UI::h('thead', [], [