Details
-
Bug
-
Resolution: Fixed
-
Critical
-
2015.07
-
None
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.