Browse Source

Bugfix: [2/3] overdue_notices.pl does not process all advertised fields

This patch adds a dependency requirement for Locale::Currency::Format

NOTE: It does not adjust kohaversion.pl and sets the dev version to XXX.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
3.2.x
Chris Nighswonger 14 years ago
committed by Galen Charlton
parent
commit
6827107ed4
  1. 1
      Makefile.PL
  2. 1
      about.pl
  3. 14
      installer/data/mysql/updatedatabase.pl

1
Makefile.PL

@ -577,6 +577,7 @@ WriteMakefile(
'Lingua::Stem::Snowball' => 0.952,
'List::Util' => 1.18,
'List::MoreUtils' => 0.21,
'Locale::Currency::Format' => 1.28,
'Locale::Language' => 2.07,
'MARC::Charset' => 0.98,
'MARC::Crosswalk::DublinCore' => 0.02,

1
about.pl

@ -101,6 +101,7 @@ Lingua::Stem
Lingua::Stem::Snowball
List::Util
List::MoreUtils
Locale::Currency::Format
Locale::Language
MARC::Crosswalk::DublinCore
MARC::Charset

14
installer/data/mysql/updatedatabase.pl

@ -3457,6 +3457,20 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion ($DBversion);
}
$DBversion = '3.01.00.XXX';
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
eval{use Locale::Currency::Format};
if (!$@) {
print "Upgrade to $DBversion done (Locale::Currency::Format installed.)\n";
SetVersion ($DBversion);
}
else {
print "Upgrade to $DBversion done.\n";
print "NOTICE: The Locale::Currency::Format package is not installed on your system or not found in \@INC.\nThis dependency is required in order to include fine information in overdue notices.\nPlease ask your system administrator to install this package.\n";
SetVersion ($DBversion);
}
}
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table

Loading…
Cancel
Save