Rocketship blocks should check if field cb_text_alignment exists

Created on 27 October 2022, about 2 years ago
Updated 16 May 2024, 7 months ago

Problem/Motivation

When you remove the field_cb_text_alignment from a block, the display of that block crashes.
This because of _rocketship_blocks_text_preprocess_block
which assumes the block is there.

Steps to reproduce

Remove _rocketship_blocks_text_preprocess_block
Go to a page with a text block.

Proposed resolution

Check if the field exists first.

Remaining tasks

Commit the patch

πŸ“Œ Task
Status

Fixed

Version

6.1

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium mallezie Loenhout

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024