File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Catalog/view/adminhtml/templates/catalog/category/checkboxes
SalesRule/Controller/Adminhtml/Promo/Widget Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,16 @@ jQuery(function()
76
76
dataUrl: '<?= /* @escapeNotVerified */ $ block ->getLoadTreeUrl () ?> '
77
77
});
78
78
79
+ categoryLoader.processResponse = function (response, parent, callback) {
80
+ var config = JSON.parse(response.responseText);
81
+
82
+ this.buildCategoryTree(parent, config);
83
+
84
+ if (typeof callback == "function") {
85
+ callback(this, parent);
86
+ }
87
+ };
88
+
79
89
categoryLoader.createNode = function(config) {
80
90
config.uiProvider = Ext.tree.CheckboxNodeUI;
81
91
var node;
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ namespace Magento \SalesRule \Controller \Adminhtml \Promo \Widget ;
7
+
8
+ class CategoriesJson extends \Magento \CatalogRule \Controller \Adminhtml \Promo \Widget \CategoriesJson
9
+ {
10
+ /**
11
+ * Authorization level of a basic admin session
12
+ *
13
+ * @see _isAllowed()
14
+ */
15
+ const ADMIN_RESOURCE = 'Magento_SalesRule::quote ' ;
16
+ }
You can’t perform that action at this time.
0 commit comments