Skip to content

Commit d743983

Browse files
author
Timm Ortloff
committed
SendForm: Fix getting value from radio element
1 parent 1a4e85d commit d743983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/Reporting/Web/Forms/SendForm.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function assemble()
3535

3636
(new SendMail())->initConfigForm($this, $this->report);
3737

38-
$radio = $this->addElement('radio', 'source_radio', [
38+
$this->addElement('radio', 'source_radio', [
3939
'label' => $this->translate('E-Mail Source'),
4040
'options' => [
4141
'manual' => $this->translate('Manual input'),
@@ -45,7 +45,7 @@ protected function assemble()
4545
'class' => 'autosubmit'
4646
]);
4747

48-
if ($radio->getValue('source_radio') === 'contacts') {
48+
if ($this->getPopulatedValue('source_radio', 'contacts') === 'contacts') {
4949
$emails = [null => $this->translate('Select Contacts')];
5050
foreach (EmailProviderHook::getProviders() as $provider) {
5151
$emails = array_merge($emails, $provider->getContactEmails());

0 commit comments

Comments
 (0)