Project

General

Profile

Actions

Bug #3314

closed

After update trigger fires after registration

Added by krileon over 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
05 March 2012
Due date:
% Done:

100%

Estimated time:
3:00 h

Description

User reports when someone registers that both after update and after registration trigger is fired.

https://www.joomlapolis.com/forum/18-general-requests/193187-events-issue-with-cb-18

This could be due to the database store functions that now fire triggers.


Files

3314-pt1.patch (3.62 KB) 3314-pt1.patch krileon, 05 March 2012 16:28
3314-pt2.patch (622 Bytes) 3314-pt2.patch krileon, 05 March 2012 16:28
3314-pt1_rev1.patch (3.88 KB) 3314-pt1_rev1.patch krileon, 05 March 2012 16:57
cb.tables.php (69 KB) cb.tables.php krileon, 05 March 2012 17:17
comprofiler.class.php (202 KB) comprofiler.class.php krileon, 05 March 2012 17:17

Related issues 2 (0 open2 closed)

Precedes CB - Bug #3315: Errors during password reset don't outputClosedbeat06 March 201206 March 2012

Actions
Precedes CB - Bug #3341: Clicking a confirmation link results in profile update trigger firingClosedbeat12 March 2012

Actions
Actions #1

Updated by krileon over 12 years ago

  • Status changed from New to Assigned
  • Assignee set to krileon
Actions #2

Updated by krileon over 12 years ago

Frontend appears to work fine in all my tests. Backend however when creating a new user is firing onAfterNewUser and onAfterUpdateUser at same time.

Actions #3

Updated by krileon over 12 years ago

This is due to storeDatabaseValue and its firing of CB triggers. It needs to be updated to ignore trigger usage in some scenarios, but Joomla triggers are still needed.

Actions #4

Updated by krileon over 12 years ago

Confirmed due to activateUser and its usage of storeBlock, which should not fire CBs triggers.

Updated by krileon over 12 years ago

Actions #6

Updated by beat over 12 years ago

  • Target version set to CB 1.8.1
Actions #7

Updated by krileon over 12 years ago

Rev 1 adds proper passing of $user errors to $this so they can be output as $user is destroyed after storage.

Updated by krileon over 12 years ago

Added pre-patched CB 1.8 files.

Actions #9

Updated by beat about 12 years ago

  • Target version changed from CB 1.8.1 to CB 1.9
Actions #10

Updated by beat over 11 years ago

  • Subject changed from After update trigger fies after registration to After update trigger fires after registration
Actions #11

Updated by beat over 11 years ago

  • Status changed from Resolved to Closed
  • Estimated time set to 3:00 h

Fixed as suggested in r1886 .
Thank you Kyle.

Actions

Also available in: Atom PDF