mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-29 11:33:46 +01:00
Fix the alias generator. Do not use -.
This commit is contained in:
@@ -135,8 +135,7 @@ $container['leaflet.alias-generator'] = $container->share(
|
||||
$filters = [
|
||||
new ExistingAliasFilter(),
|
||||
new SlugifyFilter($fields),
|
||||
new SuffixFilter(),
|
||||
new UnderscoreFilter(false)
|
||||
new SuffixFilter(false),
|
||||
];
|
||||
|
||||
$validator = new UniqueDatabaseValueValidator(
|
||||
@@ -145,7 +144,7 @@ $container['leaflet.alias-generator'] = $container->share(
|
||||
$aliasField
|
||||
);
|
||||
|
||||
return new FilterBasedAliasGenerator($filters, $validator, $dataContainerName, $aliasField);
|
||||
return new FilterBasedAliasGenerator($filters, $validator, $dataContainerName, $aliasField, '_');
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user