Subfield "Season name" forces whole field to be required

Created on 16 January 2025, about 2 months ago

Problem/Motivation

Office hours is not a required field but enabling seasons makes it required

I need to provision for, but not require, office hours, and seasons is a nice to have, but again optional.
In order to facilitate this, the required status of the season name needs to be removed/altered.

Steps to reproduce

Add an office hours field
Make it not required
Enable "allow seasons"
If none of the data is entered (as per "not required" field!), the lack of input of "Season name" cascades up and makes the whole field required, which... is problematic.

Proposed resolution

Conditionally require the season name subfield, or add seasons using button (see also: https://www.drupal.org/project/office_hours/issues/3498630 Button to "Add New Season" similar to "Add Exception" Active which is a nice to have, but it would also fix this I think?)

Remaining tasks

TBC

User interface changes

Season name not required subfield

API changes

n/a

Data model changes

n/a

🐛 Bug report
Status

Active

Version

1.21

Component

User interface

Created by

🇬🇧United Kingdom niklp Nottingham

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

Comments & Activities

Production build 0.71.5 2024