File tree 3 files changed +15
-7
lines changed
ConfigurableProduct/view/adminhtml/web/js/variations
Ui/view/base/web/templates/grid/cells 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ define([
135
135
*/
136
136
close : function ( rowIndex ) {
137
137
try {
138
- if ( this . productsMassAction ( ) . selected . length ) {
138
+ if ( this . productsMassAction ( ) . selected . getLength ( ) ) {
139
139
this . variationsComponent ( ) [ this . callbackName ] ( this . productsMassAction ( )
140
140
. selected . map ( this . getProductById . bind ( this ) ) ) ;
141
141
this . productsMassAction ( ) . deselectAll ( ) ;
Original file line number Diff line number Diff line change @@ -48,17 +48,24 @@ define([
48
48
} ,
49
49
showGrid : function ( rowIndex ) {
50
50
var product = this . productMatrix ( ) [ rowIndex ] ,
51
- attributes = JSON . parse ( product . attribute ) ;
51
+ attributes = JSON . parse ( product . attribute ) ,
52
+ filterModifier = product . productId ? {
53
+ 'entity_id' : {
54
+ 'condition_type' : 'neq' , value : product . productId
55
+ }
56
+ } : { } ;
52
57
this . rowIndexToEdit = rowIndex ;
53
58
59
+ filterModifier = _ . extend ( filterModifier , _ . mapObject ( attributes , function ( value ) {
60
+ return {
61
+ 'condition_type' : 'eq' ,
62
+ 'value' : value
63
+ } ;
64
+ } ) ) ;
54
65
this . associatedProductGrid ( ) . open (
55
66
{
56
67
'filters' : attributes ,
57
- 'filters_modifier' : product . productId ? {
58
- 'entity_id' : {
59
- 'condition_type' : 'neq' , value : product . productId
60
- }
61
- } : { }
68
+ 'filters_modifier' : filterModifier
62
69
} ,
63
70
'changeProduct' ,
64
71
false
Original file line number Diff line number Diff line change 11
11
data-action ="select-row "
12
12
data-bind ="
13
13
staticChecked: $col.selected,
14
+ disable: $col.disabled.indexOf($row()[$col.indexField]) != -1 ,
14
15
checkedValue: $row()[$col.indexField],
15
16
attr: {
16
17
id: 'check' + $row()[$col.indexField]
You can’t perform that action at this time.
0 commit comments