FIX Selection of email when prefilled from a template
This commit is contained in:
parent
8aeff05512
commit
34f4ad5c5d
1 changed files with 2 additions and 2 deletions
|
|
@ -723,7 +723,7 @@ class FormMail extends Form
|
|||
|
||||
if (!empty($arraydefaultmessage->email_from)) {
|
||||
$templatemailfrom = ' <'.$arraydefaultmessage->email_from.'>';
|
||||
$liste['from_template_'.GETPOST('modelmailselected')] = array('label' => $templatemailfrom, 'data-html' => $templatemailfrom);
|
||||
$liste['from_template_'.$arraydefaultmessage->id] = array('label' => $templatemailfrom, 'data-html' => $templatemailfrom);
|
||||
}
|
||||
|
||||
// Also add robot email
|
||||
|
|
@ -782,7 +782,7 @@ class FormMail extends Form
|
|||
$liste[$key]['data-html'] = str_replace(array('__LTCHAR__', '__GTCHAR__'), array('<span class="opacitymedium">(', ')</span>'), $liste[$key]['data-html']);
|
||||
}
|
||||
}
|
||||
$out .= ' '.$form->selectarray('fromtype', $liste, empty($arraydefaultmessage->email_from) ? $this->fromtype : 'from_template_'.GETPOST('modelmailselected'), 0, 0, 0, '', 0, 0, 0, '', 'fromforsendingprofile maxwidth200onsmartphone', 1, '', $disablebademails);
|
||||
$out .= ' '.$form->selectarray('fromtype', $liste, empty($arraydefaultmessage->email_from) ? $this->fromtype : 'from_template_'.$arraydefaultmessage->id, 0, 0, 0, '', 0, 0, 0, '', 'fromforsendingprofile maxwidth200onsmartphone', 1, '', $disablebademails);
|
||||
}
|
||||
|
||||
$out .= "</td></tr>\n";
|
||||
|
|
|
|||
Loading…
Reference in a new issue