Skip to content
Snippets Groups Projects
Unverified Commit b5faa930 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4502 from aydreeihn/issue/filter-action-email

Filter Action Send an Email Issue
parents 4a4d5452 20fb269c
No related branches found
No related tags found
No related merge requests found
...@@ -561,8 +561,9 @@ class FA_SendEmail extends TriggerAction { ...@@ -561,8 +561,9 @@ class FA_SendEmail extends TriggerAction {
} }
function getConfigurationOptions() { function getConfigurationOptions() {
$choices = array('' => __('Default System Email')); global $cfg;
$choices += Email::getAddresses();
$choices = Email::getAddresses();
return array( return array(
'recipients' => new TextboxField(array( 'recipients' => new TextboxField(array(
...@@ -608,7 +609,7 @@ class FA_SendEmail extends TriggerAction { ...@@ -608,7 +609,7 @@ class FA_SendEmail extends TriggerAction {
'from' => new ChoiceField(array( 'from' => new ChoiceField(array(
'label' => __('From Email'), 'label' => __('From Email'),
'choices' => $choices, 'choices' => $choices,
'default' => '', 'default' => $cfg->getDefaultEmail()->getId(),
)), )),
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment