Skip to content

Commit

Permalink
Do not use $dc->id for SlugGenerator (see #107)
Browse files Browse the repository at this point in the history
* Do not use `$dc->id` for SlugGenerator bf2c169
  • Loading branch information
fritzmg authored Aug 9, 2024
1 parent 1240b24 commit c68bade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/DataContainer/StyleManagerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function generateAlias($varValue, DataContainer $dc): string
// Generate an alias if there is none
if ($varValue == '')
{
$varValue = System::getContainer()->get('contao.slug')->generate($dc->activeRecord->title, $dc->id, $aliasExists);
$varValue = System::getContainer()->get('contao.slug')->generate($dc->activeRecord->title, [], $aliasExists);
}
elseif ($aliasExists($varValue))
{
Expand Down

0 comments on commit c68bade

Please sign in to comment.