Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Intro Black Friday Offer for a lifetime*

Bug cbcorefieldsajax

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
10 years 2 weeks 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
10 years 2 weeks ago - 10 years 2 weeks 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: 10 years 2 weeks ago by KatoKalin.

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

Moderators: beatnantkrileon
Powered by Kunena Forum