Details
-
Bug
-
Resolution: Fixed
-
High
-
2.3.2
-
None
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.