diff options
author | justdave%bugzilla.org <> | 2004-09-15 09:58:32 +0200 |
---|---|---|
committer | justdave%bugzilla.org <> | 2004-09-15 09:58:32 +0200 |
commit | 234bfc8f01aa41accc5c6071b78993df6283eedd (patch) | |
tree | a63f8d0b2ad39e9e03d77fc9faf843cafa8fde16 | |
parent | 2ac9cabf38e829f76248b9b3a608a3598c2d4937 (diff) | |
download | bugzilla-234bfc8f01aa41accc5c6071b78993df6283eedd.tar.gz bugzilla-234bfc8f01aa41accc5c6071b78993df6283eedd.tar.xz |
Bug 256004: Fix regression that caused duplicate sortkeys in the fielddefs table
r=myk, a=justdave
-rwxr-xr-x | checksetup.pl | 4 |
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++; } |