In a non-git setup, I got a redirect loop in the Staff
client, after applying my changes in my previous patch
to Fix for Bug 3730. For reference, that patch is
available in the following commit:

[Koha-patches] [PATCH] Fix for Bug 3730-2 Language Code for Portuguese in 
database
http://lists.koha.org/pipermail/koha-patches/2009-October/004766.html

This problem seemed to be solved for me when using the same
$DBVersion in updatedatabase.pl (3.00.04.020) that was used
in $VERSION in kohaversion.pl (for this same change). However,
this logic of using the same version number in kohaversion.pl
and updatedatabase.pl has apparently not been used for previous
database updates in the 3.0.x branch

So, I'm changing updatedatabase.pl to use the same version
number as used in kohaversion.pl.

I appreciate any testing and feedback that others may send
regarding this issue.
---
 installer/data/mysql/updatedatabase.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/installer/data/mysql/updatedatabase.pl 
b/installer/data/mysql/updatedatabase.pl
index 6d2e968..2f83538 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -1960,7 +1960,7 @@ END_SQL
     SetVersion ($DBversion);
 }
 
-$DBversion = "3.00.00.108";
+$DBversion = '3.00.04.020'; 
 if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     $dbh->do("UPDATE language_rfc4646_to_iso639 SET iso639_2_code = 'por' 
WHERE rfc4646_subtag='pt' ");
     print "Upgrade to $DBversion done (corrected ISO 639-2 language code for 
Portuguese)\n";
-- 
1.5.6.5

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to