Skip to content

Commit

Permalink
[5.x] Make config values available in form emails (#10649)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Aug 16, 2024
1 parent 7b52088 commit 799c864
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Forms/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ protected function parseConfig(array $config)
return collect($config)->map(function ($value) {
$value = Parse::env($value); // deprecated

return (string) Antlers::parse($value, array_merge($this->getGlobalsData(), $this->submissionData));
return (string) Antlers::parse($value, array_merge(
['config' => config()->all()],
$this->getGlobalsData(),
$this->submissionData,
));
});
}
}

0 comments on commit 799c864

Please sign in to comment.