プロジェクト

全般

プロフィール

Vote #79809

未完了

Issues Note id changes when changing order in account preferences

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
0
issue_org_id:
30728
author_id:
359183
assigned_to_id:
0
comments:
1
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
141
ステータス-->[New]

説明

In "my account" I can choose to reverse the order in which the notes are projected.
When I link to a note using #-1 (linking the first note) then change the
order, my link still points to Note-1 rather then note-X.

Since different users may use different account settings, confusion can arise when wrong notes
are linked.

I did a dirty fix in _history.html.erb for now:

<% reply_links = issue.notes_addable? -%>
<% for journal in journals %>

  <% if User.current.wants_comments_in_reverse_order? %>
    <% fix_index = journals.count - journal.indice %>
  <% else %>
    <% fix_index = journal.indice %>
  <% end %>

  

#<%= fix_index %> <%= avatar(journal.user, :size => "24") %> <%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %> <%= render_private_notes_indicator(journal) %>

<% if journal.details.any? %>
    <% details_to_strings(journal.visible_details).each do |string| %>
  • <%= string %>
  • <% end %>
<% if Setting.thumbnails_enabled? && (thumbnail_attachments = journal_thumbnail_attachments(journal)).any? %>
<% thumbnail_attachments.each do |attachment| %>
<%= thumbnail_tag(attachment) %>
<% end %>
<% end %> <% end %> <%= render_notes(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %>
<%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %> <% end %> <% heads_for_wiki_formatter if User.current.allowed_to?(:edit_issue_notes, issue.project) || User.current.allowed_to?(:edit_own_issue_notes, issue.project) %>

journals

--------------------------------------------------------------------------------


related_issues

relates,New,30030,Links to notes depends on issues "Display comments" setting

Admin Redmine さんが約4年前に更新

  • カテゴリIssues_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0