From 4cddebe4eacdc0c739b0fa68bf37f43673ed6d2a Mon Sep 17 00:00:00 2001 From: kjkooistra-youwe Date: Thu, 26 Sep 2024 15:49:42 +0200 Subject: [PATCH] fix: tooltip error for not editable many to many relation Error: application style and tooltip aborted, nor matching element found. Caused by missing object_field class, which is used by edit.js to find the relevant element to apply the tooltip to. Fixed by adding class(es) to component in getLayoutShow. --- public/js/pimcore/object/tags/manyToManyRelation.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/pimcore/object/tags/manyToManyRelation.js b/public/js/pimcore/object/tags/manyToManyRelation.js index c9d802478c..f125e14aee 100644 --- a/public/js/pimcore/object/tags/manyToManyRelation.js +++ b/public/js/pimcore/object/tags/manyToManyRelation.js @@ -478,6 +478,8 @@ pimcore.object.tags.manyToManyRelation = Class.create(pimcore.object.tags.abstra width: this.fieldConfig.width, height: this.fieldConfig.height, cls: "multihref_field", + componentCls: this.getWrapperClassNames(), + bodyCssClass: "pimcore_object_tag_multihref", autoExpandColumn: 'fullpath', border: true, style: "margin-bottom: 10px",