Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7cd6d451

Von Martin Helmling martin.helmling@octosoft.eu vor fast 8 Jahren hinzugefügt

  • ID 7cd6d451d97d1f1e7f3c0f9db2de03735dc8c8f0
  • Vorgänger 065cf8d5
  • Nachfolger 435a46b8

classification_filter ist nicht mehr für Partpicker notwendig

Unterschiede anzeigen:

SL/DB/Manager/PartClassification.pm
package SL::DB::Manager::PartClassification;
use strict;
use parent qw(SL::DB::Helper::Manager);
use SL::DB::Helper::Sorted;
sub object_class { 'SL::DB::PartClassification' }
__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;
__END__
=encoding utf-8
=head1 NAME
SL::DB::Manager::PartClassification
=cut

Auch abrufbar als: Unified diff