-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Attach files in email #16423
Comments
duplicate of #16420 |
#16420 is yet closed... @leninrivas Does the fix e0785ac solve this issue too ? |
no @daraelmin but it is the same bug as #16420 ! |
#Fix Dolibarr#16423 Dolibarr#16420 clear_attached__files should be lauch only on init form.
#fix Dolibarr#16420 Dolibarr#16423 path d'or V14
#Fix Dolibarr#16423 Dolibarr#16420 patch for V13
Seems to be Fixed ? |
@ksar-ksar I'm not sure, but I 'm on a the road for 4 days and I can not test. Here are my details to explain my doubts : First of all, I had some diffulties when changing the mail model. In this case the attached file by default are cleared and it remain impossible to join more file. To me it was the bug cause all files are cleared when mailmodel is not '0' or '-1' but when reading the new comment of eldy it seems to the expected workflow : Secondly, @xbloq in #16420 reported that in some module when sending mail with mailmodel by default, the files were cleared before the sending. It may be du to an appeal to the function getform() before executing the sendmail but this should not happen. I don't know if the addition of the Finally, I don't understand why there's a difference in the condition to add attached files (line 385) and to clear attached files (line 333) Line 333 Line 385 I have asked @eldy why should we restrict the possibility of attaching files orwhy we should delete them when choosing an email model in my PR, but I still don't know why these restrictions are maintened. To me we just need to remove condition on mailmodel on line 333 and 385. So should we open this thread as "New feature" ? Sorry for my english and the style. I'm writing on a smartphone. |
all it's working for me now |
A fix has been pushed into 13 branch. Thanks to test. |
Test Ok. Thank you. |
Bug
Delete file or attach file does not work when sending email
Environment
The text was updated successfully, but these errors were encountered: