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

Default ScheduleBlock's configuration is not deserialized properly

    XMLWordPrintable

Details

    Description

      The default configuration value for ScheduleBlock's attributes like events/snapshots/initial_items/slots should be an empty array instead of a string.

      Due to the configuration like:

          schedule:
              name: Content Scheduler
              category: default
              thumbnail: 'bundles/ezplatformpagefieldtype/images/thumbnails/schedule.svg'
              views:
                  default: { name: 'Default block layout', template: 'EzPlatformPageFieldTypeBundle:blocks:schedule.html.twig' }
              attributes:
                  limit:
                      name: Limit
                      type: integer
                      validators:
                          regexp:
                              options:
                                  pattern: '/[0-9]+/'
                              message: Limit must be a number
                      value: 10
                  events:
                      name: Events
                      type: schedule_events
                      value: '[]'
                  snapshots:
                      name: Snapshots
                      type: schedule_snapshots
                      value: '[]'
                  initial_items:
                      name: Initial Items
                      type: schedule_initial_items
                      value: '[]'
                  slots:
                      name: Slots
                      type: schedule_slots
                      value: '[]'
                  loaded_snapshot:
                      name: Loaded Snapshot
                      type: schedule_loaded_snapshot
                      value: ''
      

      these values are treated as strings instead of empty arrays afterwards.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: