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

Visual Editing: validation fails if document contains multiple, same name compounds

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • 14.3.0
    • 14.3.3, 14.4.0
    • None
    • 0.5
    • Flagged
    • Quasar
    • Puma Sprint 246

    Description

      If you have multiple compounds with the same name, validation fails,
      this is introduced in: CMS-13291
      I haven't dig into it too deeply, but following code doesn't make much sense to me:

                  if (values.size() != count) {
                      throw new BadRequestException(new ErrorInfo(ErrorInfo.Reason.INVALID_DATA));
                  }
      

      If I understand it correctly, any document containing more than one compound, and compound contains different value count, will fail.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mmilicevic Marijan Milicevic
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: