Jump to content

Arabic content changes not available in page getChanges method


Mirza
 Share

Recommended Posts

Hi All,

Arabic content changes not available in page getChanges method

While editing the page from admin panel in the multi-language field, added a hook to save the changes made to the page.

 

$this->pages->addHookAfter('saveReady', $this, 'hookUpdateLog');

 

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

    if(in_array($page->template->name, $this->templateList)) {
        $this->logFieldChanges($page);
    }
}
public function logFieldChanges($page) {
    $changes = $page->getChanges(); //This changes does not contain the field of arabic changes.

}

Please let me know, If I am approaching in a right way.

Screen Shot 2017-11-14 at 10.50.21 AM.png

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

×
×
  • Create New...