Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.x]: Missing $userId in #12944

Closed
Marcel-Schmidt-BAM opened this issue Mar 21, 2023 · 1 comment
Closed

[3.x]: Missing $userId in #12944

Marcel-Schmidt-BAM opened this issue Mar 21, 2023 · 1 comment
Assignees

Comments

@Marcel-Schmidt-BAM
Copy link

What happened?

Description

The event model DefineUserContentSummaryEvent provides the $userId property. When this event is triggered, no value is getting assigned to $userId .

// Fire a 'defineUserContentSummary' event
$event = new DefineUserContentSummaryEvent([
'contentSummary' => $summary,
]);
$this->trigger(self::EVENT_DEFINE_CONTENT_SUMMARY, $event);
return $this->asJson($event->contentSummary);
}

Steps to reproduce

  1. Delete a user
  2. Listen for the DefineUserContentSummaryEvent

Expected behavior

The DefineUserContentSummaryEvent assign the deleted user id(s) to its $userId property

Actual behavior

$userId is always null.

Craft CMS version

3.x, 4.x

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

Thanks for reporting that! Just released Craft 3.8.5 and 4.4.5 with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants