Projekt

Allgemein

Profil

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

use strict;

use SL::DB::MetaSetup::RequirementSpecPredefinedText;
use SL::DB::Manager::RequirementSpecPredefinedText;
use SL::DB::Helper::ActsAsList;
use SL::Locale::String;

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

my @errors;
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;

return @errors;
}

1;
(75-75/96)