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:
parent
8a5ac1ee97
commit
073ebc0001
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue