From cb7eea1ac5c166fb27814c479b3c21a82dbaeb93 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 27 Feb 2014 09:12:25 +0100 Subject: [PATCH] Bug 11855: Tiny code cleanup in members MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit [1] Template variable actionname is not used in the associated template. This could be a copy-paste from serials/member-search.pl. Consequently, the module is no longer needed in member.pl. Template members/search.tt still contains actionname; it seems that this emplate is not used too. [2] $template_name not used in members-home.pl. Test plan: [1] Go to Patrons. If you reach that page, you tested members-home.pl [2] Add a new patron. [3] Search for a patron. Edit one. Followed test plan. No problems found. Signed-off-by: Marc Véron Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton (cherry picked from commit fad3d646ff9f9ef3b9808e245f7d8b4077e63fa5) Signed-off-by: Fridolin Somers --- members/member.pl | 2 -- members/members-home.pl | 1 - 2 files changed, 3 deletions(-) diff --git a/members/member.pl b/members/member.pl index ff6e41ad21..dfc73636e3 100755 --- a/members/member.pl +++ b/members/member.pl @@ -31,7 +31,6 @@ use C4::Members; use C4::Branch; use C4::Category; use Koha::DateUtils; -use File::Basename; use Koha::List::Patron; my $input = new CGI; @@ -225,7 +224,6 @@ $template->param( branchloop => \@branchloop, categories => \@categories, searching => "1", - actionname => basename($0), numresults => $count, resultsloop => \@resultsdata, results_per_page => $resultsperpage, diff --git a/members/members-home.pl b/members/members-home.pl index 1d8f1e5e9a..9d1e3e5272 100755 --- a/members/members-home.pl +++ b/members/members-home.pl @@ -30,7 +30,6 @@ use Koha::Borrower::Modifications; my $query = new CGI; my $branch = $query->param('branchcode'); -my $template_name; $branch = q{} unless defined $branch; -- 2.39.5