Skip to content

Commit

Permalink
Merge pull request #3415 from dpfaffenbauer/version-publish-errors
Browse files Browse the repository at this point in the history
display version publish errors to the user
  • Loading branch information
weisswurstkanone committed Oct 4, 2018
2 parents 714a9b6 + f4178e7 commit 04befd6
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -260,12 +260,16 @@ pimcore.object.versions = Class.create({
method: "POST",
params: {id: versionId},
success: function(response) {
this.object.reload();

var rdata = Ext.decode(response.responseText);
if (rdata && rdata.success) {

if (rdata.success) {
this.object.reload();

pimcore.helpers.updateObjectStyle(this.object.id, rdata.treeData);
}
else {
Ext.MessageBox.alert(t("error"), rdata.message);
}

}.bind(this)
});
Expand Down

0 comments on commit 04befd6

Please sign in to comment.