Skip to content

Commit 644da50

Browse files
committed
MAGETWO-45133: Get json instead of normal page when trying to delete category after reset
1 parent f4ec5a3 commit 644da50

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Catalog/Block/Adminhtml/Category/Edit

1 file changed

+3
-1
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Category/Edit/Form.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ protected function _prepareLayout()
112112
[
113113
'id' => 'reset',
114114
'label' => __('Reset'),
115-
'onclick' => "categoryReset('" . $this->getUrl($resetPath, $this->getDefaultUrlParams()) . "',true)",
115+
'onclick' => "categoryReset('"
116+
. $this->getUrl($resetPath, $this->getDefaultUrlParams())
117+
. "',true)",
116118
'class' => 'reset'
117119
]
118120
);

0 commit comments

Comments
 (0)