Closed conformist66 closed 3 years ago
In my usual language settings when I upload the first time my file_check.pdf, two files are upload and then another problem. I don't know why it's different with my usual language
image with two files
In my usual language settings when I upload the first time my file_check.pdf, two files are upload and then another problem. I don't know why it's different with my usual language.
Hum... I don't use translation so...
Maybe the issue is linked to this. I'll check.
thanks and sorry for my explain
I just add an other commit to my PR. It seems to be related.
if (GETPOST('mode', 'alpha') == 'init'
&& (GETPOSTISSET('modelmailselected') && GETPOST('modelmailselected', 'alpha') != '-1')) {
if (!empty($arraydefaultmessage->joinfiles) && is_array($this->param['fileinit'])) { foreach ($this->param['fileinit'] as $file) { $this->add_attached_files($file, basename($file), dol_mimetype($file)); } } }
instead of
if (GETPOST('mode', 'alpha') == 'init'
|| (GETPOST('modelmailselected', 'alpha') && GETPOST('modelmailselected', 'alpha') != '-1')) {
if (!empty($arraydefaultmessage->joinfiles) && is_array($this->param['fileinit'])) { foreach ($this->param['fileinit'] as $file) { $this->add_attached_files($file, basename($file), dol_mimetype($file)); } } }
On line 420 (develop branch).
Could you try?
Work, only file_check.pdf upload, no more file without name, its OK-. But mail received hasn't file ¿?. When I return to formmail for a new mail only remain file_check.pdf no more file without name Note: In my html.formmail.class.php V13.0.1 it's line 385
Ii I apply email template I received file also
One time I applied
Ii I apply email template I received file also
One time I applied email template work also with default template
Only one thing. The file that I sent remain if I return to sent another email. Should it be deleted automatically?
I can not test anymore, cause I'm in the bus.
But for attached mail withoit using template, I think we should use
if (GETPOST('mode', 'alpha') == 'init' && (GETPOSTISSET('modelmailselected') && !in_array(GETPOST('modelmailselected', 'alpha'), array('','0','-1')) )){
on both line (develop: 370 & 420 or for 13.0.1: 354 & 385)
Bug
[When attaching extra files when sending invoices, the files do not actually attach despite the dialogue saying success]
Environment
Expected and actual behavior
[Expect additional files to attach to email but they do not attach/send despite saying they do]
Steps to reproduce the behavior
[from the send invoice (email) dialogue, ask to open and attach a file. The file requested does not attach despite saying success., This issue was not present in V13.0.0]