Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-9996

Unexpected error in doc when super type has hipposysedit:validators defined

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: On Hold
    • 10.2.0
    • None
    • cms7-release
    • None

    Description

      The presence of hipposysedit:validators in a super type field causes the derived document type to report "A required field is not present".

      Here's the thing.... the inherited field was NEVER added to the derived document type by the CMS admin. Thus any document of that type cannot be saved - despite the mandatory field being absent!

      Steps:
      1) Create a document type called "super" with several optional fields and one mandatory field (e.g. text).
      2) Save and Commit
      3) Create a document type called "child" with the super type "super".
      4) Add inherited fields from "super" but DO NOT add the mandatory field.
      5) Save and commit the document type.
      6) Create a regular document of type "child"
      7) Attempt to save the document
      8a) Expected behavior: the document saves.
      8b) Actual behavior: A required field is not present

      Suggest Hippo validator ignore inherited fields when they are committed from the document type.

      Attachments

        Activity

          People

            Unassigned Unassigned
            GordonMcKinney Gordon McKinney (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: