https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292014-11-29T13:07:37ZRedmineRedmine - Defect #18499: Localisation not set correctly on authenticity token errorshttps://www.redmine.org/issues/18499?journal_id=600802014-11-29T13:07:37ZFelix Schäfer
<ul><li><strong>File</strong> <a href="/attachments/12761">18499.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/12761/18499.patch">18499.patch</a> added</li></ul><p>This error was discovered on <a href="https://plan.io" class="external">Planio</a>. The attached patch fixes the problem and adds a test to make sure it stays that way.</p>
<p>Maybe <code>set_localization</code> should even be called at the end of <code>logged_user=</code> to make sure a user change also changes the locale? (I haven't tested that though).</p> Redmine - Defect #18499: Localisation not set correctly on authenticity token errorshttps://www.redmine.org/issues/18499?journal_id=600852014-11-29T15:39:17ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>2.6.1</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Patch committed in <a class="changeset" title="Localisation not set correctly on authenticity token errors (#18499). Patch by Felix Schäfer." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/13670">r13670</a>, thanks.</p>
<p>Felix Schäfer wrote:</p>
<blockquote>
<p>Maybe <code>set_localization</code> should even be called at the end of <code>logged_user=</code> to make sure a user change also changes the locale? (I haven't tested that though).</p>
</blockquote>
<p>Not sure it would improve things, most <code>#logged_user=</code> are followed by a redirect. And <code>#set_localization</code> would still have to be called in a few places.</p> Redmine - Defect #18499: Localisation not set correctly on authenticity token errorshttps://www.redmine.org/issues/18499?journal_id=600882014-11-29T20:51:49ZFelix Schäfer
<ul></ul><p>Thanks for the quick merge!</p> Redmine - Defect #18499: Localisation not set correctly on authenticity token errorshttps://www.redmine.org/issues/18499?journal_id=601252014-12-01T09:59:35ZDenis Savitskiy
<ul></ul><p>Pity, it doesn't help in 2.6.0develop</p> Redmine - Defect #18499: Localisation not set correctly on authenticity token errorshttps://www.redmine.org/issues/18499?journal_id=605892014-12-26T10:42:47ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>