File tree 1 file changed +2
-2
lines changed
library/Reporting/Web/Forms
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ protected function assemble()
35
35
36
36
(new SendMail ())->initConfigForm ($ this , $ this ->report );
37
37
38
- $ radio = $ this ->addElement ('radio ' , 'source_radio ' , [
38
+ $ this ->addElement ('radio ' , 'source_radio ' , [
39
39
'label ' => $ this ->translate ('E-Mail Source ' ),
40
40
'options ' => [
41
41
'manual ' => $ this ->translate ('Manual input ' ),
@@ -45,7 +45,7 @@ protected function assemble()
45
45
'class ' => 'autosubmit '
46
46
]);
47
47
48
- if ($ radio -> getValue ('source_radio ' ) === 'contacts ' ) {
48
+ if ($ this -> getPopulatedValue ('source_radio ' , ' contacts ' ) === 'contacts ' ) {
49
49
$ emails = [null => $ this ->translate ('Select Contacts ' )];
50
50
foreach (EmailProviderHook::getProviders () as $ provider ) {
51
51
$ emails = array_merge ($ emails , $ provider ->getContactEmails ());
You can’t perform that action at this time.
0 commit comments