projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d91dbc1
)
Part validate
author
G. Richardson
<information@kivitendo-premium.de>
Thu, 11 Aug 2016 13:52:58 +0000
(15:52 +0200)
committer
G. Richardson
<information@kivitendo-premium.de>
Tue, 22 Nov 2016 13:42:50 +0000
(14:42 +0100)
SL/DB/Part.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Part.pm
b/SL/DB/Part.pm
index
be6851e
..
46a0651
100644
(file)
--- a/
SL/DB/Part.pm
+++ b/
SL/DB/Part.pm
@@
-72,7
+72,7
@@
sub validate {
my ($self) = @_;
my @errors;
- push @errors, $::locale->text('The partnumber is missing.')
unless
$self->partnumber;
+ push @errors, $::locale->text('The partnumber is missing.')
if $self->id and !
$self->partnumber;
push @errors, $::locale->text('The unit is missing.') unless $self->unit;
push @errors, $::locale->text('The buchungsgruppe is missing.') unless $self->buchungsgruppen_id or $self->buchungsgruppe;