- Issue created by @dsdeiz
- Status changed to Needs review
8 months ago 4:35pm 3 April 2024 - First commit to issue fork.
- 🇧🇪Belgium lobsterr
I used your code, but I had to rewrite the existing code quite drastically.
1) I move the code for sending email to a separate function. So, we can reuse it
2) We still first check email (invitee_mail field) and then invitee (entity_id field), because normally we add invitation by email.
3) If email is empty and invitee is there then we check settings and send email to the user
4) if email is not empty we again try to load a user by email, as it was before and then we check settings and send email to the userSo, I have improved a bit the code and also covered your case. Also I had to move code to presave hook because we have issue with infinite loop 🐛 Entity save() in hook_ENTITY_TYPE_insert() Fixed
Please check MR and I will include the fix to the next release
-
LOBsTerr →
committed 119f4436 on 3.0.x
Issue #3437922: Send email to existing user, when we have only invintee...
-
LOBsTerr →
committed 119f4436 on 3.0.x
-
LOBsTerr →
committed b1724dac on 3.0.x
Issue #3437922 by LOBsTerr: Get email from user.
-
LOBsTerr →
committed b1724dac on 3.0.x
-
LOBsTerr →
committed 2ab655a4 on 4.0.x
Issue #3437922 by LOBsTerr: Send email to existing users if "Invitee...
-
LOBsTerr →
committed 2ab655a4 on 4.0.x
-
LOBsTerr →
committed 6fc19f78 on 2.x
Issue #3437922 by LOBsTerr: Send email to existing users if "Invitee...
-
LOBsTerr →
committed 6fc19f78 on 2.x
- Status changed to Fixed
4 months ago 12:44pm 22 July 2024 Automatically closed - issue fixed for 2 weeks with no activity.