mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 18:13:48 +00:00
add title of the export at the download page
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user