Skip to content

Commit 92f6a73

Browse files
MAGETWO-58285: Ajax error message doesn't display in backend
1 parent f233e85 commit 92f6a73

File tree

1 file changed

+5
-0
lines changed
  • app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/set

1 file changed

+5
-0
lines changed

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/set/main.phtml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,13 @@
313313
},
314314

315315
save : function() {
316+
var block;
317+
316318
if ($('messages')) {
317319
$('messages').update();
320+
} else {
321+
block = jQuery('<div/>').attr('id', 'messages');
322+
jQuery('.page-main-actions').after(block);
318323
}
319324
TreePanels.rebuildTrees();
320325
if(!jQuery('#set-prop-form').valid()) {

0 commit comments

Comments
 (0)