Project

General

Profile

Actions

Bug #3314

closed

After update trigger fires after registration

Bug #3314: After update trigger fires after registration

Added by krileon almost 14 years ago. Updated about 13 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

Updated by krileon almost 14 years ago Actions #1

  • Status changed from New to Assigned
  • Assignee set to krileon

Updated by krileon almost 14 years ago Actions #2

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

Updated by krileon almost 14 years ago Actions #3

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.

Updated by krileon almost 14 years ago Actions #4

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

Updated by krileon almost 14 years ago Actions #5

Updated by beat almost 14 years ago Actions #6

  • Target version set to CB 1.8.1

Updated by krileon almost 14 years ago Actions #7

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

Updated by krileon almost 14 years ago Actions #8

Added pre-patched CB 1.8 files.

Updated by beat over 13 years ago Actions #9

  • Target version changed from CB 1.8.1 to CB 1.9

Updated by beat about 13 years ago Actions #10

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

Updated by beat about 13 years ago Actions #11

  • 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: PDF Atom