Project

General

Profile

Defect #1626 » redmine.identifier.patch

Trivial patch - Leandro Lucarella, 2008-07-11 23:09

View differences:

app/models/project.rb (copia de trabajo)
58 58
  validates_associated :repository, :wiki
59 59
  validates_length_of :name, :maximum => 30
60 60
  validates_length_of :homepage, :maximum => 60
61
  validates_length_of :identifier, :in => 3..20
61
  validates_length_of :identifier, :in => 1..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 (copia de trabajo)
11 11
<p><%= f.text_area :description, :rows => 5, :class => 'wiki-edit' %></p>
12 12
 <p><%= f.text_field :identifier, :required => true, :disabled =>
13 13
 @project.identifier_frozen? %>
14 14
  <% unless @project.identifier_frozen? %>
15 15
  -<br /><em><%= l(:text_length_between, 3, 20) %> <%=
16 16
  l(:text_project_identifier_info) %></em>
17 17
  +<br /><em><%= l(:text_length_between, 1, 20) %> <%=
18 18
  l(:text_project_identifier_info) %></em>
19 19
   <% end %></p>
20 20
    <p><%= f.text_field :homepage, :size => 40 %></p>
21 21
     <p><%= f.check_box :is_public %></p>
(1-1/2)