# Bug OP-8049 - Cannot set nummerated headings without duplicating nummeration in table of contents

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-8049

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 11.1.0 |
| Observed in versions | 11.1.0 |
| Sprint | 11.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 11.1.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

qa-edge

OpenProject 11.1

### **Steps to reproduce:**

1.  Create a wiki page and create headings that include a numeration (e.g. &quot;1.1 Heading one&quot;).
2.  Add a table of contents.

### **Actual Behavior**

In the heading, the numeration is duplicated since the name of the heading is included as well as the automatically assigned numeration.

There is currently no way to add a numeration to the wiki itself (which is useful especially for longer wiki pages) without it being duplicated in the table of contents.

OpenProject 11.1:

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20065/content"></div></figure>

OpenProject 11.0:

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20066/content"></div></figure>

### **Expected Behavior**

The enumeration should not be duplicated in the table of contents. Not quite sure what the best practice is for this. Prior to 11.1 the table of contents did not have its own enumeration.
