aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchecksetup.pl4
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++;
}