mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
add validation rule on slug for custom fields
This commit is contained in:
7
Resources/config/validation.yml
Normal file
7
Resources/config/validation.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
Chill\CustomFieldsBundle\Entity\CustomField:
|
||||
properties:
|
||||
slug:
|
||||
- Regex:
|
||||
pattern: '/^[0-9a-z\-]{1,}$/'
|
||||
message: Characters not allowed. Only lowercase letters, numbers and "-" are allowed.
|
||||
|
Reference in New Issue
Block a user