summaryrefslogtreecommitdiffstats
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 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++;
}