bug 2559: fix search limit on Spanish language (DB rev 029)

Fixes bug where searching with the language limit set
to Spanish would instead retrieve Russian records.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Galen Charlton 2009-04-27 07:29:05 -05:00
parent 8a5ac1ee97
commit 073ebc0001
2 changed files with 12 additions and 1 deletions

View File

@ -2378,6 +2378,17 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion ($DBversion);
}
$DBversion = '3.01.00.029';
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do(q( UPDATE language_rfc4646_to_iso639
SET iso639_2_code = 'spa'
WHERE rfc4646_subtag = 'es'
AND iso639_2_code = 'rus' )
);
print "Upgrade to $DBversion done (fixed bug 2599: using Spanish search limit retrieves Russian results)\n";
SetVersion ($DBversion);
}
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table

View File

@ -10,7 +10,7 @@
use strict;
sub kohaversion {
our $VERSION = '3.01.00.028';
our $VERSION = '3.01.00.029';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install