Bug 19968: Add missing use Date::Calc statement
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 15 Jan 2018 13:10:41 +0000 (10:10 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 15 Jan 2018 16:46:44 +0000 (13:46 -0300)
It has been reported than the missing use statement can cause a
compilation error:
Undefined subroutine &Date::Calc::Today called at
/usr/share/koha/intranet/cgi-bin/cataloguing/value_builder/unimarc_field_100.pl
line 75.

Test plan:
Use this UNIMARC plugin and make sure it fixes the error or at least
does not break it

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

cataloguing/value_builder/unimarc_field_100.pl

index 3f936a4..99798e6 100755 (executable)
@@ -20,6 +20,7 @@
 
 use strict;
 #use warnings; FIXME - Bug 2505
+use Date::Calc qw( Today );
 
 use Koha::Util::FrameworkPlugin qw(wrapper);
 use C4::Auth;