File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ public function execute()
125
125
{
126
126
$ data = $ this ->getRequest ()->getPostValue ();
127
127
if ($ data ) {
128
- $ this ->extractOptionsData ($ data );
128
+ $ this ->preprocessOptionsData ($ data );
129
129
$ setId = $ this ->getRequest ()->getParam ('set ' );
130
130
131
131
$ attributeSet = null ;
@@ -318,25 +318,25 @@ public function execute()
318
318
}
319
319
320
320
/**
321
- * Extract options data from serialized options field.
321
+ * Extract options data from serialized options field and append to data array .
322
322
*
323
323
* This logic is required to overcome max_input_vars php limit
324
324
* that may vary and/or be inaccessible to change on different instances.
325
325
*
326
326
* @param array $data
327
327
* @return void
328
328
*/
329
- private function extractOptionsData (&$ data )
329
+ private function preprocessOptionsData (&$ data )
330
330
{
331
331
if (isset ($ data ['serialized_options ' ])) {
332
- unset($ data ['option ' ]);
333
332
$ serializedOptions = json_decode ($ data ['serialized_options ' ], JSON_OBJECT_AS_ARRAY );
334
333
foreach ($ serializedOptions as $ serializedOption ) {
335
334
$ option = [];
336
335
parse_str ($ serializedOption , $ option );
337
336
$ data = array_merge_recursive ($ data , $ option );
338
337
}
339
338
}
339
+ unset($ data ['serialized_options ' ]);
340
340
}
341
341
342
342
/**
You can’t perform that action at this time.
0 commit comments