Skip to content
This repository was archived by the owner on Aug 13, 2026. It is now read-only.

[Bug] Remove hardcoded component ids from link field definition panel - #1143

Closed
kingjia90 wants to merge 1 commit into
2.3from
fix-link-editor-duplicate-component-ids
Closed

[Bug] Remove hardcoded component ids from link field definition panel#1143
kingjia90 wants to merge 1 commit into
2.3from
fix-link-editor-duplicate-component-ids

Conversation

@kingjia90

Copy link
Copy Markdown
Contributor

Fixes pimcore/platform-version#169

Creating/editing link fields in multiple DataObjects/ObjectBricks at the same time failed with:

Ext.ComponentManager.register(): Duplicate component id "allowedTypes"

The seven multiselects added in #1078 each carried a hardcoded global ExtJS id: — opening a second class editor containing a link field registered the same component ids twice, breaking the panel.

The values are collected via the form field name, and none of the ids (allowedTypes, allowedAssetSubtypes, allowedDocumentSubtypes, allowedObjectSubtypes, allowedClasses, allowedTargets, disabledFields) is referenced anywhere in the bundle (Ext.getCmp/selector search), so they can simply be removed.

Reproduction: open two class definitions each containing a link field (or a class and an object brick) in two tabs → second editor breaks. With this patch both render fine.

Opening the class editor for multiple DataObjects/ObjectBricks containing
link fields at the same time failed with
"Ext.ComponentManager.register(): Duplicate component id 'allowedTypes'".
The multiselects are identified by their form field name, the global ids
are unused.

Fixes pimcore/platform-version#169

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes global ExtJS component IDs that caused duplicate-ID errors when multiple link field editors were open.

Changes:

  • Removed seven hardcoded multiselect IDs.
  • Preserved field names used for value collection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kingjia90

Copy link
Copy Markdown
Contributor Author

@kingjia90 kingjia90 closed this Aug 7, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Admin UI Classic] Creating/editing link fields in multiple DataObjects/ObjectBricks at the same time fails

3 participants