Revision 83fde0a4
Von Martin Helmling vor mehr als 4 Jahren hinzugefügt
SL/Helper/Inventory.pm | ||
---|---|---|
|
||
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{$_};
|
Auch abrufbar als: Unified diff
Inventory-Helper: Nur gesetzte Constraints berücksichtigen
Werden als Parameter nicht definierte Constraints übergeben,
werden diese nun übersprungen