summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-06-21 07:23:16 +0000
committerGo MAEDA <maeda@farend.jp>2019-06-21 07:23:16 +0000
commitaf987c9ed48da60139ff168db1bb6bfc43c0ff5f (patch)
tree43f74c7f51af8fdb417eb39e42d8018d0573fc94 /app
parentf535aa99afdcd25c4692292adf7b246894ed89de (diff)
downloadredmine-af987c9ed48da60139ff168db1bb6bfc43c0ff5f.tar.gz
redmine-af987c9ed48da60139ff168db1bb6bfc43c0ff5f.zip
Fix missing journal indice when updating a journal (#31427).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18310 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/journals_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb
index 809afb4cc..391a432d9 100644
--- a/app/helpers/journals_helper.rb
+++ b/app/helpers/journals_helper.rb
@@ -30,8 +30,9 @@ module JournalsHelper
links = []
if journal.notes.present?
if options[:reply_links]
+ indice = journal.indice || @journal.issue.visible_journals_with_index.find{|j| j.id == @journal.id}.indice
links << link_to(l(:button_quote),
- quoted_issue_path(issue, :journal_id => journal, :journal_indice => journal.indice),
+ quoted_issue_path(issue, :journal_id => journal, :journal_indice => indice),
:remote => true,
:method => 'post',
:title => l(:button_quote),