Project

General

Profile

Actions

Defect #38458

closed

Display order of watchers in the sidebar is indeterminate

Added by Go MAEDA over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Issues
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

In the watcher section of an issue's sidebar, the order of watchers is not explicitly specified and is environment-dependent (see watcher_users below).

I would suggest improving `watcher_users` to ensure that watchers are displayed in the order they are added.

lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb:

      module ClassMethods
        def acts_as_watchable(options = {})
          return if self.included_modules.include?(Redmine::Acts::Watchable::InstanceMethods)
          class_eval do
            has_many :watchers, :as => :watchable, :dependent => :delete_all
            has_many :watcher_users, :through => :watchers, :source => :user, :validate => false


Files

test-for-38458-note-2.patch (2.33 KB) test-for-38458-note-2.patch Go MAEDA, 2023-05-01 08:51

Related issues

Has duplicate Redmine - Feature #19484: Users orderingClosed

Actions
Actions

Also available in: Atom PDF