From: Kohei Yoshino Date: Wed, 13 Mar 2019 18:58:11 +0000 (-0400) Subject: Bug 1535075 - Change sort key for Priority so P1 will be first when sorting bugs X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b472bbb10f6b9181231792dbc5f5011f9dea199;p=thirdparty%2Fbugzilla.git Bug 1535075 - Change sort key for Priority so P1 will be first when sorting bugs --- diff --git a/scripts/generate_bmo_data.pl b/scripts/generate_bmo_data.pl index 225066e1c..b3ea49847 100755 --- a/scripts/generate_bmo_data.pl +++ b/scripts/generate_bmo_data.pl @@ -78,20 +78,21 @@ foreach my $pref (keys %user_prefs) { ############################################################ my @priorities = qw( - -- P1 P2 P3 P4 P5 + -- ); if (!$dbh->selectrow_array("SELECT 1 FROM priority WHERE value = 'P1'")) { $dbh->do("DELETE FROM priority"); - my $count = 100; + my $count = 1; foreach my $priority (@priorities) { $dbh->do("INSERT INTO priority (value, sortkey) VALUES (?, ?)", - undef, ($priority, $count + 100)); + undef, ($priority, $count)); + $count++; } }