Skip to content

Commit cb40270

Browse files
committed
Display search button in pimcore.helpers.editmode.openLinkEditPanel only when search is available
1 parent 1ad4542 commit cb40270

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

public/js/pimcore/helpers.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,28 +2114,7 @@ pimcore.helpers.editmode.openLinkEditPanel = function (data, callback, config) {
21142114
internalTypeField,
21152115
linkTypeField,
21162116
textField,
2117-
{
2118-
xtype: "fieldcontainer",
2119-
layout: 'hbox',
2120-
border: false,
2121-
items: [pathField, {
2122-
xtype: "button",
2123-
iconCls: "pimcore_icon_search",
2124-
style: "margin-left: 5px",
2125-
handler: function () {
2126-
pimcore.helpers.itemselector(false, function (item) {
2127-
if (item) {
2128-
internalTypeField.setValue(item.type);
2129-
linkTypeField.setValue('internal');
2130-
pathField.setValue(item.fullpath);
2131-
return true;
2132-
}
2133-
}, {
2134-
type: Ext.Array.intersect(["asset", "document", "object"], allowedTypes)
2135-
});
2136-
}
2137-
}]
2138-
},
2117+
fieldContainer,
21392118
propertiesFieldSet
21402119
]
21412120
},

0 commit comments

Comments
 (0)