Jump to content

Recommended Posts

Posted (edited)

In Member.php, this:

if( \count( $this->changedCustomFields ) > 0 OR ( \count( $changes ) > 0 AND !( \count( $changes ) === 1 AND isset( $changes['last_activity'] ) ) ) )

Needs to be replaced with this:

if( \count( $this->changedCustomFields ) > 0 OR ( \count( $changes ) > 0 ) )

Otherwise, the listener will not fire in many cases where a user's data has been updated.

In the v4, we could work around this with a save() hook, but in v5, hooks no longer exist.

Edited by Steven W.
  • Steven W. changed the title to onProfileUpdate Listener condition update/bugfix
  • Recently Browsing   0 members

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