From a393318341bf37116be3ae3c7889e5300ce70b88 Mon Sep 17 00:00:00 2001 From: Patrick Bitzer Date: Wed, 23 Oct 2024 09:19:58 +0200 Subject: [PATCH] display the nice path if field type combo is not editable --- public/js/pimcore/object/tags/manyToOneRelation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/pimcore/object/tags/manyToOneRelation.js b/public/js/pimcore/object/tags/manyToOneRelation.js index 6273fddce..44b17a353 100644 --- a/public/js/pimcore/object/tags/manyToOneRelation.js +++ b/public/js/pimcore/object/tags/manyToOneRelation.js @@ -671,8 +671,9 @@ pimcore.object.tags.manyToOneRelation = Class.create(pimcore.object.tags.abstrac if (!this.object) { return; } + let targets, responseHandler; - if (pimcore.helpers.hasSearchImplementation() && this.fieldConfig.displayMode === 'combo') { + if (pimcore.helpers.hasSearchImplementation() && this.fieldConfig.displayMode === 'combo' && !this.fieldConfig.noteditable) { targets = this.store.data; responseHandler = function (responseData) { this.component.removeCls('grid_nicepath_requested');