diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-16 10:48:11 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-16 10:48:11 +0000 |
commit | e1a2f3078731d29d7a52f947b05a623a440e4d26 (patch) | |
tree | 663a1f9700faf851342de6f513b85274ce9e5140 /app/models/issue.rb | |
parent | fb89e8a799d084a590e58854159f67e25f6d460e (diff) | |
download | redmine-e1a2f3078731d29d7a52f947b05a623a440e4d26.tar.gz redmine-e1a2f3078731d29d7a52f947b05a623a440e4d26.zip |
Don't use an argument to reload.
git-svn-id: http://svn.redmine.org/redmine/trunk@15679 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 862d60e48..0b8a2b2c5 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -1147,7 +1147,8 @@ class Issue < ActiveRecord::Base def soonest_start(reload=false) if @soonest_start.nil? || reload - dates = relations_to(reload).collect{|relation| relation.successor_soonest_start} + relations_to.reload if reload + dates = relations_to.collect{|relation| relation.successor_soonest_start} p = @parent_issue || parent if p && Setting.parent_issue_dates == 'derived' dates << p.soonest_start |