a subject of length 0 should not be allowed

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1474 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
p.tessenow 14 years ago
parent 0ad646c1be
commit b395d040ea
  1. 2
      app/models/cost_object.rb

@ -22,7 +22,7 @@ class CostObject < ActiveRecord::Base
:author_key => :author_id
validates_presence_of :subject, :project, :author, :kind
validates_length_of :subject, :maximum => 255
validates_length_of :subject, :maximum => 255, :minimum => 1
def before_validation

Loading…
Cancel
Save