From 0b149b8f5dad392a82faeefe9cf3b709fd5f9917 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 23 Feb 2017 07:53:25 -0500 Subject: [PATCH] Bug 12461 - Template updates --- Koha/Template/Plugin/Branches.pm | 7 ----- Koha/Template/Plugin/Koha.pm | 5 ---- .../prog/en/modules/clubs/clubs-add-modify.tt | 8 +----- .../intranet-tmpl/prog/en/modules/clubs/clubs.tt | 4 +-- .../prog/en/modules/clubs/templates-add-modify.tt | 33 ++++------------------ 5 files changed, 8 insertions(+), 49 deletions(-) diff --git a/Koha/Template/Plugin/Branches.pm b/Koha/Template/Plugin/Branches.pm index 99e5694..3d17edc 100644 --- a/Koha/Template/Plugin/Branches.pm +++ b/Koha/Template/Plugin/Branches.pm @@ -27,13 +27,6 @@ use C4::Koha; use C4::Context; use Koha::Libraries; -sub GetBranches { - my ($self) = @_; - - my $dbh = C4::Context->dbh; - return $dbh->selectall_arrayref( "SELECT * FROM branches", { Slice => {} } ); -} - sub GetName { my ( $self, $branchcode ) = @_; diff --git a/Koha/Template/Plugin/Koha.pm b/Koha/Template/Plugin/Koha.pm index df38664..0532a04 100644 --- a/Koha/Template/Plugin/Koha.pm +++ b/Koha/Template/Plugin/Koha.pm @@ -58,9 +58,4 @@ sub Version { }; } -sub UserEnv { - my ( $self, $key ) = @_; - my $userenv = C4::Context->userenv; - return $userenv ? $userenv->{$key} : undef; -} 1; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt index e7230bd..f3398cd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt @@ -66,13 +66,7 @@ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt index cd69780..d706c27 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt @@ -4,7 +4,7 @@ Koha › Tools › Patron clubs [% INCLUDE 'doc-head-close.inc' %] - + [% INCLUDE 'datatables.inc' %]