Skip to content

Commit f3d5e73

Browse files
committed
MAGETWO-91570: [2.2.x] - [Github]Can not save attribute #5907
- swatches test
1 parent 89052b6 commit f3d5e73

File tree

2 files changed

+3
-3
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute
  • dev/tests/integration/testsuite/Magento/Swatches/Controller/Adminhtml/Product

2 files changed

+3
-3
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public function execute()
319319

320320
/**
321321
* Extract options data from serialized options field.
322-
*
322+
*
323323
* This logic is required to overcome max_input_vars php limit
324324
* that may vary and/or be inaccessible to change on different instances.
325325
*

dev/tests/integration/testsuite/Magento/Swatches/Controller/Adminhtml/Product/AttributeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
use Magento\Framework\Exception\LocalizedException;
99

1010
/**
11+
* Test for product attribute save controller.
12+
*
1113
* @magentoAppArea adminhtml
1214
* @magentoDbIsolation enabled
1315
*/
@@ -99,8 +101,6 @@ private function getSwatchTextDataSet($optionsCount)
99101
];
100102
}
101103

102-
// ["optiontext[order][option_0]=1","defaulttext[]=option_0","swatchtext[value][option_0][0]=1","optiontext[value][option_0][0]=111","swatchtext[value][option_0][1]=1","optiontext[value][option_0][1]=111","swatchtext[value][option_0][2]=","optiontext[value][option_0][2]=","optiontext[delete][option_0]=","optiontext[order][option_1]=2","defaulttext[]=option_1","swatchtext[value][option_1][0]=2","optiontext[value][option_1][0]=222","swatchtext[value][option_1][1]=2","optiontext[value][option_1][1]=222","swatchtext[value][option_1][2]=","optiontext[value][option_1][2]=","optiontext[delete][option_1]=","text_swatch_validation=","text_swatch_validation_unique="]
103-
104104
/**
105105
* Get data preset for new attribute.
106106
*

0 commit comments

Comments
 (0)