summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorjustdave%bugzilla.org <>2004-09-15 09:58:32 +0200
committerjustdave%bugzilla.org <>2004-09-15 09:58:32 +0200
commit234bfc8f01aa41accc5c6071b78993df6283eedd (patch)
treea63f8d0b2ad39e9e03d77fc9faf843cafa8fde16 /checksetup.pl
parent2ac9cabf38e829f76248b9b3a608a3598c2d4937 (diff)
downloadbugzilla-234bfc8f01aa41accc5c6071b78993df6283eedd.tar.gz
bugzilla-234bfc8f01aa41accc5c6071b78993df6283eedd.tar.xz
Bug 256004: Fix regression that caused duplicate sortkeys in the fielddefs table
r=myk, a=justdave
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 6b9b1042c..9d2ca4241 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -2138,11 +2138,11 @@ sub AddFDef ($$$) {
$dbh->do("INSERT INTO fielddefs " .
"(fieldid, name, description, mailhead, sortkey) VALUES " .
"($fieldid, $name, $description, $mailhead, $headernum)");
- $headernum++;
} else {
$dbh->do("UPDATE fielddefs SET name = $name, description = $description, " .
- "mailhead = $mailhead WHERE fieldid = $fieldid");
+ "mailhead = $mailhead, sortkey = $headernum WHERE fieldid = $fieldid");
}
+ $headernum++;
}