No values were changed. "validateForm"

Created on 12 May 2022, almost 3 years ago
Updated 1 October 2023, over 1 year ago

Problem/Motivation

When saving custom processors form options, the validateForm incorrectly marks them as "No values were changed".

Steps to reproduce

Create a set of options in a processor plugin that php would consider "equal" ( == ) but not "identical" (===)
For example: ['option1'=> 'option1', 'option2' => 0] != ['option1'=> 0, 'option2' => 'option2'] returns false although values have changed.

Proposed resolution

Use identical operator in validation.
https://git.drupalcode.org/project/search_api/-/blob/8.x-1.x/src/Form/In...

๐Ÿ› Bug report
Status

Closed: won't fix

Version

1.0

Component

Plugins

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands willempje2

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