Chapter numbering allows for a "Chapter 0" and behaves weirdly when chapters posted afterwards

Description

To reproduce the problem:

1. Post a single chapter for a multi-chapter work.
2. Use "Edit Chapter" option to identify it as chapter "0" (of something).
3. Post at least 2 other chapters, manually numbering them before posting as chapters 1 and 2.

What typically happens:

The original "Chapter 0" moves to the last slot, and there are duplicate chapter numbers. For example, if you post Chapter 1 and Chapter 2 after "Chapter 0", both Chapter 2 and "Chapter 0" are numbered as Chapter 3. There is no Chapter 2. The manually-entered numbers are overwritten with 3, 1, and 3, respectively (displayed in the order of 1, 3, and 3).

If you add additional chapters, manually entering the desired chapter number for each one (with a 0 starting point), the "Chapter 0" remains at the end. The last chapter number is duplicated, and the one before is skipped. (4 chapters are numbered as 1, 2, 4, and 4, and so on.)

Stopping at only Chapter 1 doesn't having any numbering issues, but "Chapter 0" is moved to the Chapter 2 slot.

Environment

None

Assignee

Unassigned

Reporter

Veronica M

Roadmap

Works

Priority

Low

Affects versions

Fix versions

None

Components

BackEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9
Configure