Closed (fixed)
Project:
Mailer Plus (DSM+)
Version:
2.0.0-alpha4
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2025 at 01:05 UTC
Updated:
7 Dec 2025 at 12:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ushma commentedComment #4
ushma commentedHi , I have created an MR for the fix. Also attached associated patch for the same. Please review.
Comment #6
mach3.zone commentedThe error occurs, when trying to edit the root policy *All* on
admin/config/system/mailer/policy/_The problem was introduced with the issue Add support for required config
@ushma There is a second access to
$mailer_definition['required_config'], while ordering the adjusters. Added?? []Comment #7
adamps commentedThanks for the report.
Normally it is set by
Drupal\symfony_mailer\Attribute\Mailer, however the *All* and *Unknown* policies don't have a definition - seeMailerPolicy::parse().The MR uses a case-by-case approach to handle the missing definition. However we can't know for sure that this is the end of the problem - there might be cases we didn't spot with other keys, or new ones might get added in the future. I would prefer instead an approach that creates an "empty" definition initialised with default values. This code be done with code similar to
OverrideManager::getLegacyMailerDefinition(), except we don't need a subdef and we can't use LegacyMailer as the class.Perhaps we could add a function
MailerManager::createDummyDefinition()equal to most ofgetLegacyMailerDefinition()which then becomes a thin wrapper.Comment #8
adamps commentedFixed similar to #7, thanks
Comment #10
adamps commentedThe commit has been done. It isn't listed in the comments of this issue because the MR title didn't contain the issue number.