diff options
author | justdave%bugzilla.org <> | 2004-09-15 07:59:18 +0000 |
---|---|---|
committer | justdave%bugzilla.org <> | 2004-09-15 07:59:18 +0000 |
commit | b7c72b5eefb991f8a98788bdc6882702c981c89a (patch) | |
tree | dcdba2c5d8fa374e033c588cd18ef403a18b465f | |
parent | Fix for bug 249868: makes series pages validate (diff) | |
download | bugzilla-b7c72b5eefb991f8a98788bdc6882702c981c89a.tar.gz bugzilla-b7c72b5eefb991f8a98788bdc6882702c981c89a.tar.bz2 bugzilla-b7c72b5eefb991f8a98788bdc6882702c981c89a.zip |
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 a1a4ab11a..06bc04a4f 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -2088,11 +2088,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++; } |