That's because Bugzilla::Field::create_or_update() has: $sortkey ||= $dbh->selectrow_array( "SELECT MAX(sortkey) + 100 FROM fielddefs") || 100; So it sees a sortkey of 0 as undefined(?) and chooses another one. I agree to do that if the sortkey is undefined, but not if it's defined and set to 0.
If we fix this, we should also set the default sortkey on editfields.cgi to blank, instead of 0, so that fields get the default sortkey correctly if the user doesn't set a sortkey.
mkanat fixed this problem as part of bug 350307. Reassigning to him.
Assignee: administration → mkanat
Depends on: 350307
Whiteboard: [blocker will fix]
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.