Skip to content

Commit 7d42851

Browse files
committed
MAGETWO-48688: New category with invalid data loses entered data after validation
1 parent fa16543 commit 7d42851

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function execute()
5151
}
5252

5353
/**
54-
* Check if we have data in session (if during category save was exception)
54+
* Check if there are data in session (if there was an exception on saving category)
5555
*/
5656
$categoryData = $this->_getSession()->getCategoryData(true);
5757
if (is_array($categoryData)) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function execute()
8080
}
8181

8282
/**
83-
* Check if we have data in session (if during category save was exception)
83+
* Check if there are data in session (if there was an exception on saving category)
8484
*/
8585
$categoryData = $this->_getSession()->getCategoryData(true);
8686
if (is_array($categoryData)) {

0 commit comments

Comments
 (0)