When selecting for the user to be approved or to verify by email the webform itself is not linked to the user account (as it relies on the user being automatically logged in.

During postSave we could set the owner of the webform to the account using EntityOwnerInterface::setOwner.

Comments

andy_w created an issue. See original summary.

andy_w’s picture

Status: Active » Needs review
StatusFileSize
new1.43 KB

Attached a patch for this issue.

etroid’s picture

Thanks for the patch, LGTM

  • andy_w authored ef9fee2 on 8.x-1.x
    Issue #3064467 by andy_w, Etroid: User verification requirement causes...
etroid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

webdrips’s picture

StatusFileSize
new946 bytes

I couldn't see any reason why users aren't also assigned to the webform when neither the "Registration requires admin approval" or "Require email verification when a visitor creates an account" were checked, so I'm adding a patch for that as well.