Use $form_state object for retrieving mail value in _sharedemail_form_submit function.
Problem/Motivation
Now in the _sharedemail_form_submit mail value retrieved from $form['account']['mail']['#value'], need to fix this and use $form_state object, because for some cases it leads to the fatal error exception.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3194579-6.patch | 833 bytes | andypost |
Comments
Comment #2
dench0Here the patch.
Comment #3
baikho commentedThanks @dench0, moving to "Needs review" for now.
Comment #4
nguerrier commentedRe-rolling patch to include only modified lines (previous one was causing issues to apply to 8.x-2.1 tag).
Comment #5
andypostHere's a fix compatible with 8.x-2.x and 8.x-2.1 - less changes so https://git.drupalcode.org/project/sharedemail/commit/22d6d6c has no effect on patch context
The patch is the same as 4 but with more context
Comment #6
andypostAnother try with
git diff -U2Comment #7
nguerrier commentedThat's right, patch #6 still work fine & is better than no context at all :)
Comment #9
baikho commentedThanks all, tagged
8.x-2.2.