Change the length of the random string appended to segments
This commit changes the length of the random string appended to segments created from a template when a segment with the same name already exists. Before the length was 12 and now it is 5. We don't need a very long random string in this case, and the shorter the string the less ugly it is. [MAILPOET-5394]
This commit is contained in:
committed by
Aschepikov
parent
81aeb16ae2
commit
00b33c2825
@ -40,7 +40,7 @@ class SegmentSaveController {
|
||||
$name = $data['name'] ?? '';
|
||||
|
||||
if (!$this->segmentsRepository->isNameUnique($name, null) && isset($data['force_creation']) && $data['force_creation'] === 'true') {
|
||||
$name = $name . ' (' . wp_generate_password(12, false) . ')';
|
||||
$name = $name . ' (' . wp_generate_password(5, false) . ')';
|
||||
}
|
||||
|
||||
$description = $data['description'] ?? '';
|
||||
|
Reference in New Issue
Block a user