View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004260 | OXID eShop (all versions) | 4.06. Language and translations | public | 2012-07-16 12:02 | 2012-08-08 10:01 |
Reporter | gpayer | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 4.6.2 revision 46646 | ||||
Summary | 0004260: Subject of "SendedNow" mail is never translated | ||||
Description | If an user orders in a language mit ID > 0 and the shop administrator clicks the "Sent Now" button in the order administration, the resulting email always has an untranslated subject. | ||||
Steps To Reproduce | * Create an order with oxorder.oxlang > 0 * As admin user click on "sent now" in this order * Read subject of resulting mail | ||||
Additional Information | The reason for this is that oxEmail::_getShop is not used properly. Although it allows to get a oxShop object in a specific language, it also does caching, so if _getShop is called once with a wrong language id, the language of the shop object will always be wrong. And exactly that happens in setSmtp, _getShop is called there without a language id. And unfortunately setSmtp is ALWAYS called in the constructor. So it is of no consequence, that _getShop is called correctly in sendSendedNowMail, as there is already a cached version of oxShop, which was loaded in the wrong language. | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
duplicate of | 0003724 | resolved | aurimas.gladutis | Buggy language handling in shipping mail |