#Fix #16767 unremovable attached file in mailmodel
#Fix #16767 unremovable attached file in mailmodel
This commit is contained in:
parent
03941a59af
commit
2d7f858c1a
@ -382,8 +382,7 @@ class FormMail extends Form
|
|||||||
$listofmimes = array();
|
$listofmimes = array();
|
||||||
$keytoavoidconflict = empty($this->trackid) ? '' : '-'.$this->trackid; // this->trackid must be defined
|
$keytoavoidconflict = empty($this->trackid) ? '' : '-'.$this->trackid; // this->trackid must be defined
|
||||||
|
|
||||||
if (GETPOST('mode', 'alpha') == 'init' || (GETPOST('modelmailselected', 'alpha') && GETPOST('modelmailselected', 'alpha') != '-1'))
|
if (GETPOST('mode', 'alpha') == 'init' || (GETPOST('modelselected') && GETPOST('modelmailselected', 'alpha') && GETPOST('modelmailselected', 'alpha') != '-1')) {
|
||||||
{
|
|
||||||
if (!empty($arraydefaultmessage->joinfiles) && is_array($this->param['fileinit']))
|
if (!empty($arraydefaultmessage->joinfiles) && is_array($this->param['fileinit']))
|
||||||
{
|
{
|
||||||
foreach ($this->param['fileinit'] as $file)
|
foreach ($this->param['fileinit'] as $file)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user