- Issue created by @briantschu
- πΊπΈUnited States briantschu West Orange, NJ
The merge request is ready for review. I'm also attaching a patch file so I can deploy these changes in the meantime.
When embedding a block that uses the FullCalendar format, customizations to the Toolbar settings are not applied.
This appears to be caused by the preView()
method being called multiple times. On the second run, the flattenMultidimensionalArray()
method flattens the existing $options
array, breaking the data model that the javascript plugin expects.
Adding a check to see if $settings['options']
already exists ensures the settings are passed as expected to the frontend.
Updating the preView
method to see if $settings['options']
already exists prevents the options
from being flattened.
Active
3.0
Code
The merge request is ready for review. I'm also attaching a patch file so I can deploy these changes in the meantime.