Implement a hook_update to set all paragraphs with "display_close_icon" as TRUE by default

Created on 30 June 2024, 9 months ago

Problem/Motivation

On Create a toggle option to hide the "X" button from top-right Fixed was implemented a new checkbox to be able to turn-off and turn-on the icon X from top-right. By default, it's true. So if the checkbox is Marked it shows the icon. Just in case if end-users don't have it configured, the FE logic will display as well. In order to have consistence on database, would be great if has a hook_update to Mark this checkbox as TRUE by default on database as well

Steps to reproduce

Proposed resolution

Implement a hook_update_n, load all paragraphs, set the new config display_close_icon as TRUE and sve the paragraph object

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.4

Component

Code

Created by

🇧🇷Brazil renatog Campinas

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024