Projekt

Allgemein

Profil

Herunterladen (548 Bytes) Statistiken
| Zweig: | Markierung: | Revision:
d17e1b9d Moritz Bunkus
package SL::DB::RequirementSpecPredefinedText;

use strict;

use SL::DB::MetaSetup::RequirementSpecPredefinedText;
baac72df Moritz Bunkus
use SL::DB::Manager::RequirementSpecPredefinedText;
d17e1b9d Moritz Bunkus
use SL::DB::Helper::ActsAsList;
use SL::Locale::String;

sub validate {
my ($self) = @_;

my @errors;
14b824ae Moritz Bunkus
push @errors, t8('The description is missing.') if !$self->description;
push @errors, t8('The description is not unique.') if $self->get_first_conflicting('description');
push @errors, t8('The title is missing.') if !$self->title;
d17e1b9d Moritz Bunkus
return @errors;
}

1;