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:
15176cb
)
Inventory-Helper: Nur gesetzte Constraints berücksichtigen
author
Martin Helmling
<martin.helmling@octosoft.eu>
Tue, 26 Nov 2019 12:49:57 +0000
(13:49 +0100)
committer
Sven Schöling
<s.schoeling@googlemail.com>
Fri, 27 Nov 2020 15:27:45 +0000
(16:27 +0100)
Werden als Parameter nicht definierte Constraints übergeben,
werden diese nun übersprungen
SL/Helper/Inventory.pm
patch
|
blob
|
history
diff --git
a/SL/Helper/Inventory.pm
b/SL/Helper/Inventory.pm
index
a1a1428
..
17ecc20
100644
(file)
--- a/
SL/Helper/Inventory.pm
+++ b/
SL/Helper/Inventory.pm
@@
-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{$_};