Closed (fixed)
Project:
Mailer Plus (DSM+)
Version:
1.0.0-alpha8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2022 at 10:51 UTC
Updated:
20 Oct 2023 at 12:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kensae commentedComment #4
kensae commentedComment #5
adamps commentedPlease can you explain exactly how to hit the bug and the errors that you see?
I can add a To address without any problems. I see a single error if I save without including any addresses - is that what you mean?
Warning: Invalid argument supplied for foreach() in Drupal\symfony_mailer\Plugin\EmailAdjuster\AddressAdjusterBase->settingsForm() (line 60 of modules/contrib/symfony_mailer/src/Plugin/EmailAdjuster/AddressAdjusterBase.php).Comment #6
kensae commentedI'm trying to add a To address in the policy User » Admin (user awaiting approval) (admin/config/system/mailer/policy/user.register_pending_approval_admin).
- I select the 'To' option and click 'Add Element'
- Then on the 'To' element section I click 'Add Address'
- The form to add the address doesn't appear and I've got the folowing error on the ajax callback:
TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (line 152 of /modules/contrib/symfony_mailer/src/Plugin/EmailAdjuster/AddressAdjusterBase.php).After add adding the patch from my merge request the issue has been resolved: https://git.drupalcode.org/project/symfony_mailer/-/merge_requests/21.patch
Comment #7
adamps commentedThanks for explaining.
Here is an updated patch - please can you take a look?
Comment #8
adamps commentedFix some glitches
Comment #10
adamps commentedOK I'll commit this so I don't have too many patches hanging around on my dev box. Please let me know if it works for you - we can always do another commit if needed.
Comment #11
kensae commentedPatch in #8 works for me. Thanks!