Skip to content

Commit a1f36b5

Browse files
author
Oleksii Korshenko
authored
MAGETWO-87897: Refactoring: remove unuseful temporary variable #13663
2 parents 8e4491b + a8f0160 commit a1f36b5

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Category

1 file changed

+1
-2
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Category/Save.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ public function execute()
126126
return $resultRedirect->setPath('catalog/*/', ['_current' => true, 'id' => null]);
127127
}
128128

129-
$data['general'] = $this->getRequest()->getPostValue();
130-
$categoryPostData = $data['general'];
129+
$categoryPostData = $this->getRequest()->getPostValue();
131130

132131
$isNewCategory = !isset($categoryPostData['entity_id']);
133132
$categoryPostData = $this->stringToBoolConverting($categoryPostData);

0 commit comments

Comments
 (0)