Caption required incorrectly based on alt field required

Created on 7 November 2020, about 4 years ago
Updated 30 January 2024, 11 months ago

Problem/Motivation

Looks like if you have the alt field required on an image field, this module uses that (the '#alt_field_required' variable) to determine if a caption field should be required rather than the '#caption_field_required' variable.

Steps to reproduce

Set the alt field as required on an image field and set the caption field as not required. The caption field will now required.

Proposed resolution

In _image_field_caption_widget_process(), change the use of '#alt_field_required' variable to '#caption_field_required' variable.

Remaining tasks

Make ze patch. Will post in comment.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada ambient.impact Toronto

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024