]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Helper/Inventory.pm
Inventory-Helper: Nur gesetzte Constraints berücksichtigen
[mfinanz.git] / SL / Helper / Inventory.pm
index a1a142803bf515bc674b1628ee949fdba33102a2..17ecc20e1c35a74e6f1eae8969135a489a1689dc 100644 (file)
@@ -283,6 +283,7 @@ sub check_constraints {
 
     for (keys %$constraints ) {
       croak "unsupported constraint '$_'" unless $supported_constraints{$_};
+      next unless defined $constraints->{$_};
 
       my %whitelist = map { (ref $_ ? $_->id : $_) => 1 } listify($constraints->{$_});
       my $accessor = $supported_constraints{$_};