Closed hi-ko closed 4 years ago
hi @hi-ko, thanks again for the great feedbacks
could you try with the new released 3.1.1 version?
it seemed that it happened when the user assigned to the ticket had their language set as (auto)
hi @felipebatista, what a coincidence - I just openend the ticket with my finding / fix:
The issue is with locale = assigned_to.language
when a ticket is assigned to a group which by default has language "" (not nil) assigned.
I'm not a ruby coder but I endet up with:
assigned_to.language == "" ? locale = Setting.default_language : locale = assigned_to.language || locale = "en"
this is quite the same I have done on 2097a48
hi @felipebatista, ideed your implementation looks quite better and I can confirm that this fixes the issue.
By the way I also realized that I mismatched variable names (s/project_name/project/) in the german translation de.yml - so I will send you a pull request with the fixed version. Thank you for the great support!
Only on some tickets/issues we see http 500s on ticket update but I couldn't find thre reason yet:
locale is in redmine app config and for all users involved in that specific ticket. I guess the default locale (which should be the redmine's app setting) is not resolved in some cases. I will make some further tests but maybe one could already see the issue with line 160 in issue_patch.rb ...