View | Details | Raw Unified | Return to bug 26351
Collapse All | Expand All

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 166-172 sub barcodedecode { Link Here
166
    my ($barcode, $filter) = @_;
166
    my ($barcode, $filter) = @_;
167
    my $branch = C4::Context::mybranch();
167
    my $branch = C4::Context::mybranch();
168
    $filter = C4::Context->preference('itemBarcodeInputFilter') unless $filter;
168
    $filter = C4::Context->preference('itemBarcodeInputFilter') unless $filter;
169
    ($barcode) = Koha::Plugins->call('item_barcode_transform',  $barcode ) || $barcode;
169
    ($barcode) = Koha::Plugins->call_recursive('item_barcode_transform',  $barcode );
170
    $filter or return $barcode;     # ensure filter is defined, else return untouched barcode
170
    $filter or return $barcode;     # ensure filter is defined, else return untouched barcode
171
	if ($filter eq 'whitespace') {
171
	if ($filter eq 'whitespace') {
172
		$barcode =~ s/\s//g;
172
		$barcode =~ s/\s//g;
(-)a/t/db_dependent/Koha/Plugins/Plugins.t (-2 / +1 lines)
Lines 126-132 subtest 'GetPlugins() tests' => sub { Link Here
126
126
127
    @plugins = $plugins->GetPlugins({ metadata => { my_example_tag  => 'find_me' }, all => 1 });
127
    @plugins = $plugins->GetPlugins({ metadata => { my_example_tag  => 'find_me' }, all => 1 });
128
    @names = map { $_->get_metadata()->{'name'} } @plugins;
128
    @names = map { $_->get_metadata()->{'name'} } @plugins;
129
    is( scalar @names, 2, "Only two plugins found via a metadata tag" );
129
    is( scalar @names, 4, "Only four plugins found via a metadata tag" );
130
130
131
    $schema->storage->txn_rollback;
131
    $schema->storage->txn_rollback;
132
};
132
};
133
- 

Return to bug 26351