Project

General

Profile

Feature #13244 » time_entry.patch

Pavel Potcheptsov, 2013-11-14 14:29

View differences:

time_entry.rb 2013-11-14 15:25:27.135231459 +0200
85 85
    errors.add :hours, :invalid if hours && (hours < 0 || hours >= 1000)
86 86
    errors.add :project_id, :invalid if project.nil?
87 87
    errors.add :issue_id, :invalid if (issue_id && !issue) || (issue && project!=issue.project)
88
    errors.add :spent_on,  "is too early" if (spent_on < Date.today - 5.day)
88 89
  end
89 90

  
90 91
  def hours=(h)
(1-1/4)