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
This commit is contained in:
parent
5ee277fa22
commit
b9db2228c0
|
@ -311,9 +311,9 @@ module Redmine
|
||||||
html_class << (version.behind_schedule? ? 'version-behind-schedule' : '') << " "
|
html_class << (version.behind_schedule? ? 'version-behind-schedule' : '') << " "
|
||||||
html_class << (version.overdue? ? 'version-overdue' : '')
|
html_class << (version.overdue? ? 'version-overdue' : '')
|
||||||
html_class << ' version-closed' unless version.open?
|
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,
|
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 << ' behind-start-date' if progress_date < self.date_from
|
||||||
html_class << ' over-end-date' if progress_date > self.date_to
|
html_class << ' over-end-date' if progress_date > self.date_to
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue