Skip to content

Commit 2565178

Browse files
authored
[Bug]: Fix option editor (#981)
1 parent 423b2e3 commit 2565178

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

public/js/pimcore/object/classes/data/multiselect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ pimcore.object.classes.data.multiselect = Class.create(pimcore.object.classes.da
238238
},
239239

240240
showoptioneditor: function (store) {
241-
let editor = new pimcore.object.helpers.gridEditor(store);
241+
let editor = new pimcore.object.helpers.optionEditor(store);
242242
editor.edit();
243243
},
244244

@@ -529,7 +529,7 @@ pimcore.object.classes.data.multiselect = Class.create(pimcore.object.classes.da
529529
},
530530

531531
showgrideditor: function (valueStore) {
532-
const editor = new pimcore.object.helpers.gridEditor(valueStore, ['value']);
532+
const editor = new pimcore.object.helpers.optionEditor(valueStore, ['value']);
533533
editor.edit();
534534
}
535535
});

public/js/pimcore/object/classes/data/select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ pimcore.object.classes.data.select = Class.create(pimcore.object.classes.data.da
323323
},
324324

325325
showgrideditor: function (valueStore) {
326-
const editor = new pimcore.object.helpers.gridEditor(valueStore);
326+
const editor = new pimcore.object.helpers.optionEditor(valueStore);
327327
editor.edit();
328328
}
329329
});

public/js/pimcore/object/helpers/gridEditor.js renamed to public/js/pimcore/object/helpers/optionEditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
* pimcore.object.tags.localizedfields
1515
*/
1616

17-
pimcore.registerNS("pimcore.object.helpers.gridEditor");
17+
pimcore.registerNS("pimcore.object.helpers.optionEditor");
1818
/**
1919
* @private
2020
*/
21-
pimcore.object.helpers.gridEditor = Class.create({
21+
pimcore.object.helpers.optionEditor = Class.create({
2222

2323
initialize: function (
2424
store,

templates/admin/index/index.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
"pimcore/object/helpers/gridTabAbstract.js",
308308
"pimcore/object/helpers/metadataMultiselectEditor.js",
309309
"pimcore/object/helpers/customLayoutEditor.js",
310-
"pimcore/object/helpers/gridEditor.js",
310+
"pimcore/object/helpers/optionEditor.js",
311311
"pimcore/object/helpers/imageGalleryDropZone.js",
312312
"pimcore/object/helpers/imageGalleryPanel.js",
313313
"pimcore/object/helpers/selectField.js",

0 commit comments

Comments
 (0)