projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Testfall: Erzeugnis fertigen aufm Mond, aber Einzelteile im Lager Erde
[kivitendo-erp.git]
/
SL
/
DB
/
RequirementSpecType.pm
diff --git
a/SL/DB/RequirementSpecType.pm
b/SL/DB/RequirementSpecType.pm
index
cf48954
..
6525680
100644
(file)
--- a/
SL/DB/RequirementSpecType.pm
+++ b/
SL/DB/RequirementSpecType.pm
@@
-7,11
+7,14
@@
use SL::DB::Manager::RequirementSpecType;
use SL::DB::Helper::ActsAsList;
use SL::Locale::String;
use SL::DB::Helper::ActsAsList;
use SL::Locale::String;
+__PACKAGE__->meta->initialize;
+
sub validate {
my ($self) = @_;
my @errors;
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;
}
return @errors;
}