summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2007-08-22 03:47:51 +0200
committerwurblzap%gmail.com <>2007-08-22 03:47:51 +0200
commitc56f5e3c03177edf52172c8a164f66c354d0e147 (patch)
treecaef8b053a3031404d31d7c1d9dca2b202e44e70 /Bugzilla/Install
parent5a1fdacb12095b417382c15186e5aaaec7eed3a1 (diff)
downloadbugzilla-c56f5e3c03177edf52172c8a164f66c354d0e147.tar.gz
bugzilla-c56f5e3c03177edf52172c8a164f66c354d0e147.tar.xz
Bug 365378 – The 'languages' parameter is not necessary.
Patch by Marc Schumann <wurblzap@gmail.com>; r=LpSolit; a=LpSolit
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r--Bugzilla/Install/DB.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm
index d2abe9da6..327487cd9 100644
--- a/Bugzilla/Install/DB.pm
+++ b/Bugzilla/Install/DB.pm
@@ -512,6 +512,9 @@ sub update_table_definitions {
# 2007-08-08 LpSolit@gmail.com - Bug 332149
$dbh->bz_add_column('groups', 'icon_url', {TYPE => 'TINYTEXT'});
+ # 2007-08-21 wurblzap@gmail.com - Bug 365378
+ _make_lang_setting_dynamic();
+
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################
@@ -2884,6 +2887,17 @@ sub _initialize_workflow {
Bugzilla::Status::add_missing_bug_status_transitions();
}
+sub _make_lang_setting_dynamic {
+ my $dbh = Bugzilla->dbh;
+ my $count = $dbh->selectrow_array(q{SELECT 1 FROM setting
+ WHERE name = 'lang'
+ AND subclass IS NULL});
+ if ($count) {
+ $dbh->do(q{UPDATE setting SET subclass = 'Lang' WHERE name = 'lang'});
+ $dbh->do(q{DELETE FROM setting_value WHERE name = 'lang'});
+ }
+}
+
1;
__END__