chg: [workflowBlueprints] Changed export filename generation

pull/8568/head
Sami Mokaddem 2022-08-24 10:10:04 +02:00
parent 0d4aa566fc
commit 75d75cc6e6
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class WorkflowBlueprintsController extends AppController
$content = JsonTool::encode($workflowBlueprint, JSON_PRETTY_PRINT);
$this->response->body($content);
$this->response->type('json');
$this->response->download(sprintf('workflowblueprint_%s_%s.json', $workflowBlueprint['WorkflowBlueprint']['name'], time()));
$this->response->download(sprintf('blueprint_%s_%s.json', str_replace(' ', '-', strtolower($workflowBlueprint['WorkflowBlueprint']['name'])), time()));
return $this->response;
}
}