If I want to set mandrill api key in settings.php then the module do not get API key from settings.php value, it gets value from active config. In some we want the API key to be set in settings.php which is not supported currently. MandrillConfigurationAccessCheck checks for apikey from the database which ignores the key set in settings.php.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3152757-5.patch | 1.82 KB | klaasvw |
| #2 | 3152757-2.patch | 673 bytes | chintan.vyas |
Comments
Comment #2
chintan.vyas commentedAdding a patch for getting overridden value of config for the mandrill API key.
Comment #3
johnzzonJust encountered this today. We set the API key from an environment variable in settings.php:
The patch above fixes the issue. Reason is because getEditable is mutable:
Comment #4
averagejoe3000+1 for RTBC. We've been using this patch in production for 11 months now without issue.
Comment #5
klaasvw commentedWe encountered a similar issue when trying to use the mandrill_template module. There were also a couple of instance there where
getshould be used instead ofgetEditableto allow settings.php overrides.The attached patch is based on #2 with support for the mandrill_template module.
Comment #6
chintan.vyas commentedComment #8
mariacha1 commentedThanks! Added to the 8.x-1.x branch.