-
Bug
-
Resolution: Fixed
-
Major
-
4.2.3, 4.3.0
-
None
-
None
-
4.3 RC1
Steps to reproduce :
- Create the file to override a content type : WEB-INF/param/content-types/org.ametys.web.default.Content.article.xml
- Add your own global validator in it :
<?xml version="1.0" encoding="UTF-8"?> <cms:content-type xmlns:cms="http://www.ametys.org/schema/cms"> <cms:global-validators> <cms:global-validator class="my.own.GlobalValidator"/> </cms:global-validators> </cms:content-type>
- Add a breakpoint into your validator in the method #validate(Content, Form, MetadataSet, Errors)
- Restart your CMS
- Edit a content (of the modified content type)
- Nothing happens while saving
- Est référencé par
-
CMS-10278 Unable to override indexing model of a content type
-
- Closed
-
[CMS-9993] [Content] Impossible to override global validators
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Ready to merge [ 10208 ] | New: Resolved [ 5 ] |
Status | Original: Functional review OK [ 10207 ] | New: Ready to merge [ 10208 ] |
Assignee | Original: Laurence Aumeunier [ laurence ] |
Status | Original: Available for review [ 10005 ] | New: Functional review OK [ 10207 ] |
Status | Original: In Progress [ 3 ] | New: Available for review [ 10005 ] |
Fix Version/s | Original: 4.2.12 [ 15582 ] |
Sprint | New: 4.3 RC1 [ 40 ] |
Assignee | New: Laurence Aumeunier [ laurence ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |