From 861f9b5dea08fce24d4434cc81a2d1c9d709be56 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 19 Mar 2024 14:08:48 +0000 Subject: [PATCH] Bug 31791: Remove CanBeEdited template helper We've opted to rely on the objects directly in templates whenever we can now. As such, I opt to remove this new template helper and use the object method directly instead. Signed-off-by: Martin Renvoize --- Koha/Template/Plugin/Biblio.pm | 6 -- .../prog/en/includes/cat-toolbar.inc | 2 +- t/db_dependent/Template/Plugin/Biblio.t | 68 ------------------- 3 files changed, 1 insertion(+), 75 deletions(-) delete mode 100755 t/db_dependent/Template/Plugin/Biblio.t diff --git a/Koha/Template/Plugin/Biblio.pm b/Koha/Template/Plugin/Biblio.pm index f0a3dd9f0fd..e339263b9c9 100644 --- a/Koha/Template/Plugin/Biblio.pm +++ b/Koha/Template/Plugin/Biblio.pm @@ -69,10 +69,4 @@ sub RecallsCount { return $recalls->count; } -sub CanBeEdited { - my ( $self, $biblio, $patron ) = @_; - - return $biblio->can_be_edited($patron); -} - 1; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc index 5924deeeaac..7b3582172fb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc @@ -40,7 +40,7 @@