[Koha-bugs] [Bug 26141] Duplicated code in search.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Aug 5 13:12:32 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26141
Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #107820|0 |1
is obsolete| |
--- Comment #2 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 107828
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107828&action=edit
Bug 26141: Remove duplicated code from search.pl
commit 417553a9e47bf31f4cb785162e3dced856a2ac2a
Bug 12478: starting to add search to staff client
This commit added code related to the itemtypes to the advanced search, but
this code already existed.
The weird bit is:
$template->param(advancedsearchesloop => \@advancedsearchesloop);
my $types = C4::Context->preference("AdvancedSearchTypes") || "itemtypes";
my $advancedsearchesloop = prepare_adv_search_types($types);
$template->param(advancedsearchesloop => $advancedsearchesloop);
We are passing twice advancedsearchesloop to the template.
Test plan (for QA):
Review the changes and confirm that we can safely remove this code
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list