lower_project_identifier_lenght_limit_to_2-r1927.diff

Patch created against r1927 of the trunk. - Mischa The Evil, 2008-10-07 19:42

Download (1.25 KB)

View differences:

app/models/project.rb (working copy)
58 58
  validates_associated :repository, :wiki
59 59
  validates_length_of :name, :maximum => 30
60 60
  validates_length_of :homepage, :maximum => 255
61
  validates_length_of :identifier, :in => 3..20
61
  validates_length_of :identifier, :in => 2..20
62 62
  validates_format_of :identifier, :with => /^[a-z0-9\-]*$/
63 63
  
64 64
  before_destroy :delete_all_members
app/views/projects/_form.rhtml (working copy)
11 11
<p><%= f.text_area :description, :rows => 5, :class => 'wiki-edit' %></p>
12 12
<p><%= f.text_field :identifier, :required => true, :disabled => @project.identifier_frozen? %>
13 13
<% unless @project.identifier_frozen? %>
14
<br /><em><%= l(:text_length_between, 3, 20) %> <%= l(:text_project_identifier_info) %></em>
14
<br /><em><%= l(:text_length_between, 2, 20) %> <%= l(:text_project_identifier_info) %></em>
15 15
<% end %></p>
16 16
<p><%= f.text_field :homepage, :size => 60 %></p>
17 17
<p><%= f.check_box :is_public %></p>