projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Pflichtenheftpunkte bearbeiten
[kivitendo-erp.git]
/
SL
/
DB
/
RequirementSpecItem.pm
diff --git
a/SL/DB/RequirementSpecItem.pm
b/SL/DB/RequirementSpecItem.pm
index
f7444da
..
1bc44c2
100644
(file)
--- a/
SL/DB/RequirementSpecItem.pm
+++ b/
SL/DB/RequirementSpecItem.pm
@@
-43,6
+43,15
@@
sub _before_delete_delete_children {
1;
}
+sub validate {
+ my ($self) = @_;
+
+ my @errors;
+ push @errors, t8('The title is missing.') if !$self->parent_id && !$self->title;
+
+ return @errors;
+}
+
sub sorted_children {
my ($self) = @_;