Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12350

Global validator are not deduplicated for content with multiple types

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.9, 4.9.0
    • 4.8.8
    • None
    • None
    • 4.9.0 M7
    • Oui

      Consider the following content type definitions :

      • Mammal with a global validator hasThreeEarBones
      • Duck extends Mammal
      • Beaver extends Mammal

      Now consider a content Platypus of content type Duck and Beaver.

      When editing the Platypus content, the hasThreeEarBones will be called twice (once for each type including it) even though it is in fact the same validator.
      Aside from the obvious time loss, this also means that in case of error detected by the validator, those error will be detected multiple time and display multiple time to the user.

            cbayle Caroline Bayle
            ggouin Guillaume Gouin
            Caroline Bayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: