ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

start_date_is_not_saved_for_versions.patch

Spenser Jones, 2012-04-10 09:49 pm

Download (864 Bytes)

 
b/app/models/version.rb
27 27
  validates_presence_of :name
28 28
  validates_uniqueness_of :name, :scope => [:project_id]
29 29
  validates_length_of :name, :maximum => 60
30
  validates_format_of :start_date, :with => /^\d{4}-\d{2}-\d{2}$/, :message => :not_a_date, :allow_nil => true
30 31
  validates_format_of :effective_date, :with => /^\d{4}-\d{2}-\d{2}$/, :message => :not_a_date, :allow_nil => true
31 32
  validates_inclusion_of :status, :in => VERSION_STATUSES
32 33
  validates_inclusion_of :sharing, :in => VERSION_SHARINGS
......
37 38

  
38 39
  safe_attributes 'name',
39 40
    'description',
41
    'start_date',
40 42
    'effective_date',
41 43
    'due_date',
42 44
    'wiki_page_title',