Revision 3a1b684b
Von Martin Helmling martin.helmling@octosoft.eu vor mehr als 8 Jahren hinzugefügt
SL/DB/Manager/PartClassification.pm | ||
---|---|---|
|
||
__PACKAGE__->make_manager_methods;
|
||
|
||
sub classification_filter {
|
||
my ($class, $classification, $prefix) = @_;
|
||
|
||
return () unless $classification;
|
||
|
||
$prefix //= '';
|
||
|
||
my @classifications = grep { $_ } listify($classification);
|
||
return ( $prefix . 'classification_id' => \@classifications );
|
||
}
|
||
|
||
1;
|
||
|
||
|
Auch abrufbar als: Unified diff
partpicker mit classification_id als filter erweitert