- Status changed to Fixed
about 1 year ago 2:51pm 30 August 2023 - π³π±Netherlands johnv
This is not best practice, but the fix was not complete.
Automatically closed - issue fixed for 2 weeks with no activity.
When we configure the field via Layout Builder we receive the following error:
Notice: Trying to access array offset on value of type null in office_hours_exceptions_preprocess_field() (line 37 of modules/contrib/office_hours/office_hours.theme.exceptions.inc).
And also some settings won't apply.
It means that office_hours_exceptions_preprocess_field() doesn't support layout builder, becaue the content view mode stores in the '#third_party_settings' in this case.
1. Add office_hours field to the content
2. Enable Layout Builder for full view
3. Configure view mode (Manage Layout button)
4. Add a new field as a block to the page
5. Save changes.
6. Check the view mode.
Try to retrieve view mode from '#third_party_settings' first.
Fixed
1.7
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This is not best practice, but the fix was not complete.
Automatically closed - issue fixed for 2 weeks with no activity.