Bug when processor defines both datasource-independent and datasource-specific properties

Created on 17 October 2025, 7 days ago

It seems we never ran into this, but in the course of Allow the "Custom value" token property to be added to a specific datasource Active I noticed that if a processor defines both a datasource-specific and a datasource-independent property, and both are present on a specific item, \Drupal\search_api\Item\Item::getFields() will actually invoke $processor->addFieldValues() for that processor, potentially leading to duplicate field values.

The fix is simple enough but will also need a regression test.

🐛 Bug report
Status

Active

Version

1.0

Component

Framework

Created by

🇦🇹Austria drunken monkey Vienna, Austria

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

Merge Requests

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