# Bug OP-7117 - Multiple spaces in project name causes problems

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 10.6.3 |
| Observed in versions | 10.5.0 |
| Sprint | 10.6.3 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 10.5.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**:

Your OpenProject Version: 10.05.1 / Community Edition

Win 8.1 x64 / Chrome / Language: English and Polish

### **Steps to reproduce:**

1.  Create a project that has two spaces after each other in the name (something linke &quot;Name&lt;space&gt;&lt;space&gt;Long Name&quot;
2.  Try to delete the project

### Actual behavior

*   In the warning box, there is the expected project name displayed with only one space.
*   When copying that, the delete button does not get enabled, as it expects two spaces.
    *   Users are confused as the project is nearly everywhere shown with only one space (except the project settings). Thus, they have to know that a space is missing, otherwise they cannot delete the project.

### Expected behavior

*   When creating a new project, multiple spaces should already be truncated so that it is impossible to create project with multiple spaces. Thus the error can be avoided.
