Fixed broken CSV export
This commit is contained in:
@@ -5,6 +5,10 @@ Improvements:
|
|||||||
|
|
||||||
* Make embedded documentation available in multiple languages
|
* Make embedded documentation available in multiple languages
|
||||||
|
|
||||||
|
Bug fixes:
|
||||||
|
|
||||||
|
* Fixed broken CSV exports
|
||||||
|
|
||||||
Version 1.0.30
|
Version 1.0.30
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class ExportController extends BaseController
|
|||||||
$data = $this->$model->$method($project['id'], $from, $to);
|
$data = $this->$model->$method($project['id'], $from, $to);
|
||||||
$this->response->withFileDownload($filename.'.csv');
|
$this->response->withFileDownload($filename.'.csv');
|
||||||
$this->response->csv($data);
|
$this->response->csv($data);
|
||||||
}
|
} else {
|
||||||
|
|
||||||
$this->response->html($this->helper->layout->project('export/'.$action, array(
|
$this->response->html($this->helper->layout->project('export/'.$action, array(
|
||||||
'values' => array(
|
'values' => array(
|
||||||
@@ -48,6 +48,7 @@ class ExportController extends BaseController
|
|||||||
'title' => $page_title,
|
'title' => $page_title,
|
||||||
), 'export/sidebar'));
|
), 'export/sidebar'));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Task export
|
* Task export
|
||||||
@@ -76,7 +77,7 @@ class ExportController extends BaseController
|
|||||||
*/
|
*/
|
||||||
public function summary()
|
public function summary()
|
||||||
{
|
{
|
||||||
$this->common('projectDailyColumnStats', 'getAggregatedMetrics', t('Summary'), 'summary', t('Daily project summary export'));
|
$this->common('projectDailyColumnStatsModel', 'getAggregatedMetrics', t('Summary'), 'summary', t('Daily project summary export'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user