Jump to content

trackChanges for modified_user_id


renobird
 Share

Recommended Posts

works as expected on other fields, including status.



public function hookSaveReady(HookEvent $event){
    $page = $event->arguments[0];
    $changes = $page->getChanges();

    foreach ($changes as $change) {
        $this->session->message($change);
    }
}

Link to comment
Share on other sites

If I set 

$page->modifiedUser = $this->user 

in my saveReady hook, then $page->getChanges() has modified_users_id.

This works, and will allow me to move on. Would be nice to know if there is a "proper" way.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...