Skip to content

Commit 3f08314

Browse files
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #14901: [Backport] Refactoring: remove unuseful temporary variable (by @rogyar)
2 parents f130812 + 422eab5 commit 3f08314

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
@@ -123,8 +123,7 @@ public function execute()
123123
return $resultRedirect->setPath('catalog/*/', ['_current' => true, 'id' => null]);
124124
}
125125

126-
$data['general'] = $this->getRequest()->getPostValue();
127-
$categoryPostData = $data['general'];
126+
$categoryPostData = $this->getRequest()->getPostValue();
128127

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

0 commit comments

Comments
 (0)