From 5c889f75a33c5cd92226669698b06a94fc5b3066 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Fri, 3 Mar 2023 14:11:58 +1100 Subject: [PATCH] Fixed file name using random name in generated content. --- .../custom/cs_generated_content/generated_content/file/file.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docroot/modules/custom/cs_generated_content/generated_content/file/file.inc b/docroot/modules/custom/cs_generated_content/generated_content/file/file.inc index 23de605e8..0833c3797 100644 --- a/docroot/modules/custom/cs_generated_content/generated_content/file/file.inc +++ b/docroot/modules/custom/cs_generated_content/generated_content/file/file.inc @@ -47,7 +47,7 @@ function cs_generated_content_generated_content_create_file_file() { foreach ($generation_types as $generation_type => $asset_types) { foreach ($asset_types as $asset_type) { for ($i = 0; $i < $total_files_count_per_type; $i++) { - $filename = sprintf('Generated %s %s file %s %s', $generation_type, $asset_type, $i + 1, $helper::randomName(4)); + $filename = sprintf('Generated %s %s file %s %s', $generation_type, $asset_type, $i + 1, $helper::staticName(4)); $file = $helper->createFile($asset_type, [ 'filename' => str_replace(' ', '_', $filename), ], $generation_type);