Skip to content

Commit

Permalink
Allow numeric aliase
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolineus committed Jan 7, 2025
1 parent 29c05fd commit 352c3c7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/EventListener/Dca/ContactProfileDcaListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ public function generateAlias($value, DataContainer $dataContainer): string
$value = $this->determineAlias($dataContainer);
}

if (preg_match('/^[1-9]\d*$/', $value)) {
throw new Exception($this->translator->trans('ERR.aliasNumeric', [$value], 'contao_default'));
}

if ($this->aliasExists($value, $dataContainer)) {
throw new Exception($this->translator->trans('ERR.aliasExists', [$value], 'contao_default'));
}
Expand Down

0 comments on commit 352c3c7

Please sign in to comment.