Fix the behaviour that EBT timeline is able to be created without any timeline event

Created on 26 March 2023, over 1 year ago
Updated 27 March 2023, over 1 year ago

Problem/Motivation

Currently in the block type for EBT timeline we're able to create multiple timeline events using fields that are paragraph reference and it works good. However we realized that the content editors are able to create a custom block of EBT timeline without fill any field of timeline event nad it's being created in blank. This is caused because the block type has this field as optional. at /admin/structure/block/block-content/manage/ebt_timeline/fields/block_content.ebt_timeline.field_ebt_timeline

Please verify the steps to reproduce.

Steps to reproduce

  1. Access structure -> add custom block
  2. Select block type "EBT timeline"
  3. Fill only the description
  4. Save
  5. Result: The custom block will be saved without any validation
  6. Expected: Since the block type is for timeline, is necessary to fill at least one timeline event

Proposed resolution

  1. Open the block type EBT timeline
  2. Open the fields management
  3. Set the entity reference for Paragraph "Timeline event" as required
  4. Save
  5. Export configs
  6. Move the config into config/install directory

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
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.71.5 2024