X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/baac72df4777f1d63da63867e893c302b5c0bf5a..ebac0f0e96bdd9f2e967c563db1c9a8917d3d146:/SL/DB/RequirementSpecComplexity.pm diff --git a/SL/DB/RequirementSpecComplexity.pm b/SL/DB/RequirementSpecComplexity.pm index 279a9c9ec..5cdea0c06 100644 --- a/SL/DB/RequirementSpecComplexity.pm +++ b/SL/DB/RequirementSpecComplexity.pm @@ -7,11 +7,14 @@ use SL::DB::Manager::RequirementSpecComplexity; use SL::DB::Helper::ActsAsList; use SL::Locale::String; +__PACKAGE__->meta->initialize; + sub validate { my ($self) = @_; my @errors; - push @errors, t8('The description is missing.') if !$self->description; + push @errors, t8('The description is missing.') if !$self->description; + push @errors, t8('The description is not unique.') if $self->get_first_conflicting('description'); return @errors; }