File tree Expand file tree Collapse file tree 3 files changed +25
-10
lines changed
Backend/view/adminhtml/ui_component
Ui/view/base/web/js/dynamic-rows Expand file tree Collapse file tree 3 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 74
74
</field >
75
75
<field name =" theme" >
76
76
<argument name =" data" xsi : type =" array" >
77
- <item name =" options" xsi : type =" object" >Magento\Framework\View \Design\Theme\Label</item >
77
+ <item name =" options" xsi : type =" object" >Magento\Theme\Model \Design\Theme\Label</item >
78
78
<item name =" config" xsi : type =" array" >
79
79
<item name =" formElement" xsi : type =" string" >select</item >
80
80
<item name =" dataType" xsi : type =" string" >text</item >
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © 2016 Magento. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ namespace Magento \Theme \Model \Design \Theme ;
7
+
8
+ class Label extends \Magento \Framework \View \Design \Theme \Label
9
+ {
10
+ /**
11
+ * Return labels collection array
12
+ *
13
+ * @param bool|string $label add empty values to result with specific label
14
+ * @return array
15
+ */
16
+ public function getLabelsCollection ($ label = false )
17
+ {
18
+ $ options = parent ::getLabelsCollection ();
19
+ if ($ label ) {
20
+ array_unshift ($ options , ['value ' => 0 , 'label ' => $ label ]);
21
+ }
22
+ return $ options ;
23
+ }
24
+ }
Original file line number Diff line number Diff line change @@ -556,15 +556,6 @@ define([
556
556
this . setMaxPosition ( ) ;
557
557
}
558
558
559
- elems . forEach ( function ( record ) {
560
- _ . where ( record . elems ( ) ,
561
- {
562
- formElement : 'select'
563
- } ) . forEach ( function ( elem ) {
564
- elem . value ( undefined ) ;
565
- } ) ;
566
- } ) ;
567
-
568
559
path = this . dataScope + '.' + this . index + '.' + ( this . startIndex + idx ) ;
569
560
this . source . set ( path , rec ) ;
570
561
} , this ) ;
You can’t perform that action at this time.
0 commit comments