X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FPart.pm;h=46a06513c06336c7c6775ec38c318e6b5008d566;hb=f27794056c50783ab7af7fb4af5c48097001cc3b;hp=be6851eece7ce277b010d4b01ce300cbc695081a;hpb=d91dbc1f9799e5ebfb2a5746a99ba5cc842d6617;p=kivitendo-erp.git 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;