Project

General

Profile

Patch #12738 ยป no_negative_startdate.diff

corrects negative start_date - Daniel Felix, 2013-01-04 15:52

View differences:

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

  
    (1-1/1)