Skip to content

Commit

Permalink
add spaces to category name
Browse files Browse the repository at this point in the history
  • Loading branch information
rserry committed Sep 7, 2023
1 parent 49da4c8 commit aa37c9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/PageBundle/Hydrator/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ protected function doHydrate(array $data, $object = null)

$translationData = $data['tab_content']['tab_' . $language->getAbbrev()];

//No spaces in name to create valide url for categoryPage
$translationData['name'] = str_replace(' ', '-', $translationData['name']);

if ($translation !== null) {
$translation->setName($translationData['name']);
} else {
Expand Down

0 comments on commit aa37c9c

Please sign in to comment.