Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug/Doc] JS Event postSaveObject send old object datas #5116

Open
Yivan opened this issue Oct 21, 2019 · 0 comments

Comments

@Yivan
Copy link
Contributor

@Yivan Yivan commented Oct 21, 2019

Hello,

Using the postSaveObject event in Pimcore BO, the old datas are in the object:

    postSaveObject: function (object) {
        console.log(object);
    }

object.data.data and object.data.general are the one before the save action.
Is it a bug ? Do we have to trigger an JS ajax request to have manually those datas ?
If no this should be mentionned in the documentation, as well a sample code to get the new datas.
If yes and new data should be received, so how to get old datas ?

I think for the best possibility, it would be great to have old and new datas, so we can make some comparaison to make some actions based on this.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.