View Issue Details

IDProjectCategoryView StatusLast Update
0004260OXID eShop (all versions)4.06. Language and translationspublic2012-08-08 10:01
Status closedResolutionfixed 
Product Version4.6.2 revision 46646 
Target VersionFixed in Version 
Summary0004260: Subject of "SendedNow" mail is never translated
DescriptionIf 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 InformationThe 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.
TagsNo tags attached.
PHP Versionany
Database Versionany


duplicate of 0003724 resolvedaurimas.gladutis Buggy language handling in shipping mail 



2012-07-16 13:36

reporter   ~0007098

Look at bug 3724: ;)