Create the ebt_webform.install and implement a hook update to set the field "Form" as required in the block type "EBT webform"

Created on 19 March 2023, over 1 year ago
Updated 20 March 2023, over 1 year ago

Problem/Motivation

Recently we update the block type "EBT webform" to set the field "Form" as required at ✨ Fixed the behaviour that ebt_webform was able to save without select the form Fixed . On this ticket we fixed the block type configuration and it was committed into config/install folder, which is correct. So now new users installing the ebt_webform will get this new configuration. But thinking about the users that already have the ebt_webform installed we can create a hook_update to set it as required for them as well

Steps to reproduce

Proposed resolution

Create the new file for ebt_webform.install
Implement a hook_update_N
Load the field object from block type
Set the config as required by default
Save the entity

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

Comments & Activities

Production build 0.69.0 2024