Fields are not saved

Created on 9 August 2022, over 2 years ago
Updated 13 February 2024, 9 months ago

Problem/Motivation

After upgrading af site from 9.0.* to 9.4.5 this module stopped working.
The selected fields was not saved in the settings form and therefore not available in the bundles form.
No errors shown so location the reason was a little tricky.

But I found out that the submitForm method in BetterFieldDescriptionsSettingsForm line 175 is checking for string value but all values are int so no settings are saved.s

Proposed resolution

Changing line 175 from
if (is_string($value)) {
to
if (!is_string($value) && $value > 0) {

fixed the problem.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇰Denmark styrbaek

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