Patch #12738 ยป no_negative_startdate.diff
| app/models/issue.rb | ||
|---|---|---|
| 536 | 536 |
errors.add :due_date, :not_a_date |
| 537 | 537 |
end |
| 538 | 538 | |
| 539 |
if start_date.nil? && @attributes['start_date'].present? |
|
| 539 |
if (start_date.nil? && @attributes['start_date'].present?) |
|
| 540 |
|| @attributes['start_date'].to_i < 0 |
|
| 540 | 541 |
errors.add :start_date, :not_a_date |
| 541 | 542 |
end |
| 542 | 543 | |