The structure of values received in WidgetInterface::massageFormValues() varies depending on #access TRUE/FALSE

Created on 23 August 2014, about 10 years ago
Updated 24 April 2023, over 1 year ago

Problem/Motivation

Found by @Berdir in #2226493-154: Apply formatters and widgets to Node base fields :

It seems, at least for some widgets (seen with DateTimeTimestampWidget in the issue linked above), the structure of the $values received in massageFormValues() is not the same depending on whether the widget was visible or not (#access = FALSE ? to be confirmed by @Berdir)

Steps to reproduce

Needed

Proposed resolution

Remaining tasks

Steps to reproduce
Is the test in #4 sufficient to expose the problem.
Has the problem gone away?

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

10.1

Component
Field 

Last updated 5 days ago

Created by

🇫🇷France yched

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