https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29672
--- Comment #5 from Fridolin Somers <[email protected]> --- (In reply to Fridolin Somers from comment #4) > I see it returns undef when plugins are disabled. > It should return empty array non ? > > In order to allow : > > my @plugin_responses = Koha::Plugins->call( > 'opac_results_xslt_variables', > { > lang => $lang, > patron_id => $borrowernumber > } > ); > for my $plugin_variables ( @plugin_responses ) { > $variables = { %$variables, %$plugin_variables }; > } Oh i see it is covered by a unit test : t::lib::Mocks::mock_config('enable_plugins', 0); @responses = Koha::Plugins->call('check_password', { password => '1234' }); is_deeply(\@responses, [], 'call() should return an empty array if plugins are disabled'); Should be OK :) -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
