Skip to Content Skip to Menu

Bug cbcorefieldsajax

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
9 years 11 months ago #252473 by KatoKalin
Bug cbcorefieldsajax was created by KatoKalin
I have a Textfield with CB Core Field Ajax enabled.
When I check the triggers that get executed I see the onAfterUserUpdate trigger which is:

$_PLUGINS->trigger( 'onAfterUserUpdate', array( &$user, &$user, $oldUserComplete ) );

According to Krileon here: www.joomlapolis.com/forum/153-professional-member-support/225910-auto-action-trigger-on-value-change#246839 the $oldUserComplete should contain the old user object whil $user would containt the new one.

Unless I am doing something wrong, it does not.

In my case examining $user->myfield is contains the exact same value like $oldUserComplete->myfield which is the new value after updating the field with Ajax.

Where do I get the old value from to compare it against the new value?

Please Log in or Create an account to join the conversation.

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
9 years 11 months ago - 9 years 11 months ago #252476 by KatoKalin
Replied by KatoKalin on topic Bug cbcorefieldsajax
BTW:

For trigger $_PLUGINS->trigger( 'onBeforeUserUpdate', array( &$user, &$user, &$oldUserComplete, &$oldUserComplete ) ); it works as expected. $user returns the current field, $oldUserComplete the old field.
Last edit: 9 years 11 months ago by KatoKalin.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum