]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1535075 - Change sort key for Priority so P1 will be first when sorting bugs
authorKohei Yoshino <kohei.yoshino@gmail.com>
Wed, 13 Mar 2019 18:58:11 +0000 (14:58 -0400)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2019 18:58:11 +0000 (14:58 -0400)
scripts/generate_bmo_data.pl

index 225066e1cb5980223bec1bba57ab60ee59519961..b3ea49847efffdc067c4c89a95c8b8af431db3eb 100755 (executable)
@@ -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++;
   }
 }