Uploaded image for project: 'Content Editor'
  1. Content Editor
  2. CONTEDIT-510

Inconsistent structure when creating story without blocks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • 2.1.4
    • 2.1.3
    • None

      Steps to reproduce

      This can be reproduced easily on our demo website

      1. Create two stories, one defining a simple block of text for example and other empty (just fill the mandatory fields).
      2. Edit the empty story to add a text block
      3. Check in JCR the structure created for each story. The structure of the one created with blocks from the start will have a blocks node while the recently edited won't although content is the same.

      When opening the recently edited story, a warning will be displayed stating:

      "Since version 2.1-beta of the Content Editor module, the blocks in the Stories app can handle internationalized content. The current block structure is not compatible with the i18n configuration of the 'blocks' field in the app. Please ask your developer to set 'i18n: false' for the field."

      Expected results

      Editing the story yields the same result as creating the story with blocks all from the start

      Actual results

      Structure isn't consistent and it throws warnings

      Workaround

      Development notes

        Acceptance criteria

              dai.ha Dai Ha
              rgaona Roberto Gaona
              AuthorX
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD