Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-196

Incorrect data sent while saving a landing page with empty schedule block

    XMLWordPrintable

Details

    Description

      When saving landing page with empty schedule block (no items added) incorrect data is sent to backend.

      Example:

      "fieldValue":"{\"page\":{\"title\":\"qwerty\",\"layout\":\"1_2\",\"zones\":[{\"id\":\"second\",\"name\":\"Second zone\",\"blocks\":[]},{\"id\":\"first\",\"name\":\"First zone\",\"blocks\":[{\"id\":\"b-2a4fa19b-82ac-31e4-e720-c331384bd98f\",\"name\":\"Schedule Block\",\"type\":\"schedule\",\"ttl\":0,\"template\":\"EzSystemsLandingPageFieldTypeBundle:blocks:schedule-hero.html.twig\",\"attributes\":{\"queue\":[{\"locationId\":null}],\"slots\":1}}]}]}}"

      How to reproduce the issue:

      • create a new landing page,
      • add a new schedule block,
      • set a template on schedule block,
      • publish.

      Attachments

        Activity

          People

            Unassigned Unassigned
            michal.pipa-obsolete@ez.no Michal Pipa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: