Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions public/js/pimcore/element/selector/searchFacade.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ pimcore.element.selector.searchFacade = new Class.create({
return this.getImplementation().getObjectRelationInlineSearchRoute();
}
return null;
},

getObjectRelationInlineSearchRouteMethod: function () {
if(this.hasImplementation()) {
if(typeof this.getImplementation().getObjectRelationInlineSearchRouteMethod === "function") {
return this.getImplementation().getObjectRelationInlineSearchRouteMethod();
}
return 'GET';
}
return null;
}
});

Expand Down
8 changes: 8 additions & 0 deletions public/js/pimcore/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,14 @@ pimcore.helpers.getObjectRelationInlineSearchRoute = function () {
return null;
}

pimcore.helpers.getObjectRelationInlineSearchRouteMethod = function () {
if(pimcore.helpers.hasSearchImplementation()) {
return pimcore.globalmanager.get('searchImplementationRegistry').getObjectRelationInlineSearchRouteMethod();
}

return null;
}
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

Avoid automated semicolon insertion (92% of all statements in the enclosing script have an explicit semicolon).

Copilot uses AI. Check for mistakes.

pimcore.helpers.activateMaintenance = function () {

Ext.Ajax.request({
Expand Down
3 changes: 3 additions & 0 deletions public/js/pimcore/object/tags/manyToManyObjectRelation.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ pimcore.object.tags.manyToManyObjectRelation = Class.create(pimcore.object.tags.
storeConfig.proxy = {
type: 'ajax',
url: pimcore.helpers.getObjectRelationInlineSearchRoute(),
actionMethods: {
read: pimcore.helpers.getObjectRelationInlineSearchRouteMethod()
},
extraParams: {
fieldConfig: JSON.stringify(this.fieldConfig),
data: JSON.stringify(this.data.map(function(element) {
Expand Down
3 changes: 3 additions & 0 deletions public/js/pimcore/object/tags/manyToOneRelation.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ pimcore.object.tags.manyToOneRelation = Class.create(pimcore.object.tags.abstrac
storeConfig.proxy = {
type: 'ajax',
url: pimcore.helpers.getObjectRelationInlineSearchRoute(),
actionMethods: {
read: pimcore.helpers.getObjectRelationInlineSearchRouteMethod()
},
extraParams: {
fieldConfig: JSON.stringify(this.fieldConfig),
data: JSON.stringify(
Expand Down
Loading