Skip to content

Commit 3ade620

Browse files
committed
Remove the snake case formatting of file names
1 parent 2b265cc commit 3ade620

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎ProcessMaker/Http/Controllers/Process/ScreenController.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function import(Screen $screen)
9595
*/
9696
public function download(Screen $screen, $key)
9797
{
98-
$fileName = snake_case($screen->title) . '.json';
98+
$fileName = trim($screen->title) . '.json';
9999
$fileContents = Cache::get($key);
100100

101101
if (! $fileContents) {

‎ProcessMaker/Http/Controllers/ProcessController.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function import(Process $process)
191191
*/
192192
public function download(Process $process, $key)
193193
{
194-
$fileName = snake_case($process->name) . '.json';
194+
$fileName = trim($process->name) . '.json';
195195
$fileContents = Cache::get($key);
196196

197197
if (!$fileContents) {

0 commit comments

Comments
 (0)