From: G. Richardson Date: Thu, 11 Aug 2016 13:52:58 +0000 (+0200) Subject: Part validate X-Git-Tag: release-3.5.4~1882 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f27794056c50783ab7af7fb4af5c48097001cc3b;hp=d91dbc1f9799e5ebfb2a5746a99ba5cc842d6617;p=kivitendo-erp.git Part validate --- diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index be6851eec..46a06513c 100644 --- 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;