If a user is deleted, currently its subscriptions are not deleted.
And so we've got a fatal error when generating a log, because we call $subscription->getOwner()->id()

Let's fix that

Comments

flocondetoile created an issue. See original summary.

flocondetoile’s picture

Issue summary: View changes
flocondetoile’s picture

Status: Active » Needs review
StatusFileSize
new3.41 KB

a failing test

flocondetoile’s picture

StatusFileSize
new6.51 KB

The fix. Need an hook_update_N().

flocondetoile’s picture

Title: Subscriptions should be deleted if owner is deleted » Subscriptions and Logs should be deleted if its owner is deleted
flocondetoile’s picture

StatusFileSize
new12.08 KB

With the hook_update_N. Also fix the unrelated and randomized fail (because of email sent order).

  • flocondetoile committed e906a05 on 8.x-1.x
    Issue #3095633 by flocondetoile: Subscriptions and Logs should be...
flocondetoile’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.