diff options
author | Go MAEDA <maeda@farend.jp> | 2019-06-02 15:58:32 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-06-02 15:58:32 +0000 |
commit | 1a4ff9eb49f8108e1fcdbdcf70ed9c7db766dbb2 (patch) | |
tree | 1df1aacf7d04eb54efe4a9ce9c11c1f418b77beb /app/controllers | |
parent | 2d475288e4b79bea7f3beefd5f0be151510b0274 (diff) | |
download | redmine-1a4ff9eb49f8108e1fcdbdcf70ed9c7db766dbb2.tar.gz redmine-1a4ff9eb49f8108e1fcdbdcf70ed9c7db766dbb2.zip |
Send the journal_indice as param in order to get rid of extra queries (#31427).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18218 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/journals_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/journals_controller.rb b/app/controllers/journals_controller.rb index a0a0352dd..7a477a0b1 100644 --- a/app/controllers/journals_controller.rb +++ b/app/controllers/journals_controller.rb @@ -66,8 +66,7 @@ class JournalsController < ApplicationController if @journal user = @journal.user text = @journal.notes - indice = @journal.issue.visible_journals_with_index.find{|j| j.id == @journal.id}.indice - @content = +"#{ll(Setting.default_language, :text_user_wrote_in, {:value => user, :link => "#note-#{indice}"})}\n> " + @content = +"#{ll(Setting.default_language, :text_user_wrote_in, {:value => user, :link => "#note-#{params[:journal_indice]}"})}\n> " else user = @issue.author text = @issue.description |