[ https://issues.apache.org/jira/browse/OFBIZ-1170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrian Crum updated OFBIZ-1170: ------------------------------- Attachment: FreeMarkerWorker.patch Attached patch fixes the bug. I changed the behavior to apply the user's settings just prior to the call to Template.process(). The settings changes and process call are then syncronized to the Template instance. In addition, I did some code cleanup and added JavaDoc comments. I also eliminated two unnecessary methods that were used by only one other java file. > FreeMarkerWorker class has a bug in its caching logic > ----------------------------------------------------- > > Key: OFBIZ-1170 > URL: https://issues.apache.org/jira/browse/OFBIZ-1170 > Project: OFBiz > Issue Type: Bug > Components: framework > Reporter: Adrian Crum > Priority: Minor > Attachments: FreeMarkerWorker.patch > > > The FreeMarkerWorker class creates an instance of the Template class, > initializes it with the current user's locale, then stores it in a cache. > Other users will see the template rendered in the first user's locale, > regardless of their locale setting. > This can be demonstrated on the Hot Wax demo site in the WorkEffort calendar. > Some elements in the screen are rendered in another locale, regardless of > your current locale setting. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.