Skip to content

Data Object Editor: many-to-one relation ignores display mode "Inline search" #287

Description

@alexbaat

Affected Version

2026.1 (verified on pimcore/studio-ui-bundle 2026.1.6; the code path is unchanged on 2026.x)

Affected capability

Data Objects

Steps to reproduce

  1. Add a Many-To-One Relation field to a data object class and restrict it to a single class.
  2. In the field settings set Display mode to "Inline search" and save the class.
  3. Re-open the class definition — the setting is stored correctly ('displayMode' => 'combo' in var/classes/definition_<Class>.php).
  4. Open an object of that class in the Data Object editor.

Actual Behavior

The field renders the path reference input, exactly as with "Display path reference". There is no way to search; you can only pick the related object through the element selector.

The value is stored and delivered correctly — displayMode is a public property on Pimcore\Model\DataObject\ClassDefinition\Data\Relations\AbstractRelations and the layout is passed through raw — but the object data component never reads it: DynamicTypeObjectDataManyToOneRelation.getObjectDataComponent() always renders ManyToOneRelation. Only manyToManyObjectRelation implements a combo branch (labelled "Tag field" there).

So the Display mode dropdown is effectively dead UI for manyToOneRelation: both options render the same widget.

Expected Behavior

"Inline search" renders a searchable field for the related class, as the option promises and as the equivalent setting does for many-to-many object relations.


A pull request implementing this is already open: pimcore/studio-ui-bundle#3960. This issue is filed for traceability, per the issue-link requirement on that repository.

Supersedes pimcore/studio-ui-bundle#889, which describes the same gap.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

Affected capability

None yet

Platform Version

None yet

Galaxy

None yet

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions