add title of the export at the download page

This commit is contained in:
2019-04-03 15:32:22 +02:00
parent b19e70ccfe
commit 8bfa3c5028
3 changed files with 11 additions and 5 deletions

View File

@@ -483,12 +483,12 @@ class ExportController extends Controller
protected function rebuildData($key)
{
if ($key === NULL) {
throw $this->createHttpNotFoundException("key does not exists");
throw $this->createNotFoundException("key does not exists");
}
if ($this->redis->exists($key) !== 1) {
$this->addFlash('error', $this->translator->trans("This report is not available any more"));
throw $this->createHttpNotFoundException("key does not exists");
throw $this->createNotFoundException("key does not exists");
}
$serialized = $this->redis->get($key);
@@ -534,7 +534,8 @@ class ExportController extends Controller
}
$viewVariables = [
'alias' => $alias
'alias' => $alias,
'export' => $exportManager->getExport($alias)
];
if ($formater instanceof \Chill\MainBundle\Export\Formatter\CSVListFormatter) {