summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-12-22 12:39:38 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-12-22 12:39:38 +0000
commitb9db2228c0f1380d757bfde9691be33a92e0335f (patch)
treefa32dab4bddef01873c471e4c1e195ec573b08e5 /lib
parent5ee277fa22e98543ccb76f90efda0ac7076f7e40 (diff)
downloadredmine-b9db2228c0f1380d757bfde9691be33a92e0335f.tar.gz
redmine-b9db2228c0f1380d757bfde9691be33a92e0335f.zip
replace deprecated Version#completed_pourcent at lib/redmine/helpers/gantt.rb (#12724)
git-svn-id: http://svn.redmine.org/redmine/trunk@12439 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/gantt.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb
index e9e77ff91..82cbd5c6b 100644
--- a/lib/redmine/helpers/gantt.rb
+++ b/lib/redmine/helpers/gantt.rb
@@ -311,9 +311,9 @@ module Redmine
html_class << (version.behind_schedule? ? 'version-behind-schedule' : '') << " "
html_class << (version.overdue? ? 'version-overdue' : '')
html_class << ' version-closed' unless version.open?
- if version.start_date && version.due_date && version.completed_pourcent
+ if version.start_date && version.due_date && version.completed_percent
progress_date = calc_progress_date(version.start_date,
- version.due_date, version.completed_pourcent)
+ version.due_date, version.completed_percent)
html_class << ' behind-start-date' if progress_date < self.date_from
html_class << ' over-end-date' if progress_date > self.date_to
end