diff --git a/js/admin-products.js b/js/admin-products.js index a404b8dbf..88e666607 100644 --- a/js/admin-products.js +++ b/js/admin-products.js @@ -527,13 +527,16 @@ product_tabs['Prices'] = new function(){ context: this, async: false, success: function(data) { - if (data.status == 'ok') + if (data !== null) { - showSuccessMessage(data.message); - parent.remove(); + if (data.status == 'ok') + { + showSuccessMessage(data.message); + parent.remove(); + } + else + showErrorMessage(data.message); } - else - showErrorMessage(data.message); } }); };