Allow to remove values that weren't submitted

Created on 15 June 2023, almost 2 years ago
Updated 16 June 2023, almost 2 years ago

Problem/Motivation

Can't remove data from the fields if they weren't submitted yet

Steps to reproduce

1. Open an entity add form where you have an Office Hours field.
2. Add values in the "From"/"To"/Comment" fields.
3. "Remove" button isn't shown on the form so you should clear all the fields one by one.

Same behavior with an entity edit form.

In addition, the button should not be hidden after the click so it could be used multiple times.

Proposed resolution

Don't use the if (!OfficeHoursItem::isValueEmpty($value)) condition for the "Remove" button.

User interface changes

The "Remove" button will be always shown on a form.

✨ Feature request
Status

Fixed

Version

1.11

Component

User interface

Created by

πŸ‡ΊπŸ‡¦Ukraine paulrad

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

Comments & Activities

Production build 0.71.5 2024