Fix #71: Using multiple edit to copy entities leads to invalid aliases. Do not copy aliases at all.

This commit is contained in:
David Molineus
2019-02-13 12:46:19 +01:00
parent bb8f9e42dc
commit a6c08ae8e5
9 changed files with 59 additions and 8 deletions

View File

@@ -157,7 +157,14 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = [
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
['netzmacht.contao_leaflet.listeners.dca.validator', 'validateAlias'],
],
'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true],
'eval' => [
'mandatory' => false,
'maxlength' => 255,
'tl_class' => 'w50',
'unique' => true,
'doNotCopy' => true,
'nullIfEmpty' => true,
],
'toolkit' => [
'alias_generator' => [
'factory' => 'netzmacht.contao_leaflet.definition.alias_generator.factory_default',