Projekt

Allgemein

Profil

GX-Bug #69794

Von Alexandre Ataides vor mehr als 2 Jahren aktualisiert

When the old attachments are deleted for any reason, the order email does not work. work, and it throws a warning on *Admin > Toolbox > Show Logs* : 
 ``` 
 WARNING: copy(/var/www/uploads/attachments/email_9cc5f6ae399cb774760f06caa1052255229cdc0d.pdf): failed to open stream: No such file or directory 
 WARNING: sha1_file(/var/www/uploads/attachments/email_9cc5f6ae399cb774760f06caa1052255229cdc0d.pdf): failed to open stream: No such file or directory 
 ``` 

 NOTE: Set the configurations below, just to make the testing process easier 

 **Pre-conditions:** 
 - Settings -> Legal -> Attach Conditions of Use as PDF to the order confirmation -> **OFF** 
 - Settings -> Legal -> Attach Privacy Conditions as PDF to the order confirmation -> **OFF** 
 - Settings -> Legal -> Attach Right of Withdrawal as PDF to the order confirmation -> **ON** 
 - Settings -> Legal -> Attach withdrawal form as PDF to the order confirmation -> **OFF** 

 **Steps to reproduce:** 
 1. Place an order. 
 1. Go to *Admin > Customers > E-mails* and check the status of the order email: it should be marked as *sent*. 
     1. In the same page, at the bottom right, click on the button to delete the old attachments: **Delete old Attachments** 
     1. In the `Removal Date` field, put today's date and click on the delete button. 
     1. Check the `/var/www/uploads/attachments/` folder, all the attachment files should have been deleted. 
 1. Place another order. 
 1. Go to *Admin > Customers > E-mails* and check the status of the order email: it should be marked as *pending*. 

 **Actual:** 
 The order email is not sent. 

 **Expected:** 
 The order email should be sent even if the file does not exist. A new file should be created, if the file does not exist. 

Zurück