Project

General

Profile

Defect #1626 » redmine.identifier.patch

Trivial patch (updated) - Leandro Lucarella, 2008-07-11 23:11

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 => @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, 1, 20) %> <%= l(:text_project_identifier_info) %></em>
15 15
<% end %></p>
16 16
<p><%= f.text_field :homepage, :size => 40 %></p>
17 17
<p><%= f.check_box :is_public %></p>
(2-2/2)