File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Controller/Adminhtml/Category
view/adminhtml/templates/catalog/category Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,12 @@ public function execute()
67
67
throw new \Exception (__ ('Category is not available for requested store. ' ));
68
68
}
69
69
$ category ->move ($ parentNodeId , $ prevNodeId );
70
- } catch (\Magento \Framework \Exception \LocalizedException $ e ) {
71
- $ error = true ;
72
- $ this ->messageManager ->addError (__ ('There was a category move error. ' ));
73
70
} catch (\Magento \Framework \Exception \AlreadyExistsException $ e ) {
74
71
$ error = true ;
75
72
$ this ->messageManager ->addError (__ ('There was a category move error. %1 ' , $ e ->getMessage ()));
73
+ } catch (\Magento \Framework \Exception \LocalizedException $ e ) {
74
+ $ error = true ;
75
+ $ this ->messageManager ->addError ($ e ->getMessage ());
76
76
} catch (\Exception $ e ) {
77
77
$ error = true ;
78
78
$ this ->messageManager ->addError (__ ('There was a category move error. ' ));
Original file line number Diff line number Diff line change 493
493
} else {
494
494
$(obj.tree.container.dom).trigger('categoryMove.tree');
495
495
}
496
+ $('.page-main-actions').next('.messages').remove();
497
+ $('.page-main-actions').next('#messages').remove();
498
+ $('.page-main-actions').after(data.messages);
496
499
}).fail(function (jqXHR, textStatus) {
497
500
if (window.console) {
498
501
console.log(textStatus);
You can’t perform that action at this time.
0 commit comments