From 3b2f28b03caeb43a3eb354caba2c0e3d35987ef4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 8 Sep 2014 13:21:17 +0200 Subject: [PATCH] Bug 12884: Get rid of redefined subroutine warnings in dateaccessioned.pl Instead of removing all warnings, we should remove warnings about the redefined subroutines. Test plan: - link the dateaccessioned plugin with one of your biblio field - edit an item - verify they are no warnings in the Koha log file. --- cataloguing/value_builder/dateaccessioned.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cataloguing/value_builder/dateaccessioned.pl b/cataloguing/value_builder/dateaccessioned.pl index 5e834a4..2ae821a 100755 --- a/cataloguing/value_builder/dateaccessioned.pl +++ b/cataloguing/value_builder/dateaccessioned.pl @@ -17,8 +17,9 @@ # with Koha; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -use strict; -use warnings; +use Modern::Perl; + +no warnings 'redefine'; =head1 -- 2.1.0