Project

General

Profile

Defect #38458

Updated by Go MAEDA over 1 year ago

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: /Users/maeda/redmines/redmine-trunk/lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb: 
 <pre><code class="ruby"> 
       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 
 </code></pre> 

Back