# Bug AUTOWORK-357 - User can copy status transitions to currently edited role

Project: Stream Workflows & Automations
Status: merged
URL: https://community.openproject.org/work_packages/AUTOWORK-357

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Roles and permissions, Administration / Type/Variants and Workflows |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | unreleased/dev |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Effort (shirt size) |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as admin
    
2.  Go to Administration &gt; Work packages &gt; Workflows
    
3.  Open any workflow
    
4.  Select any role and any transition type
    
5.  Click on &#x27;Copy to other roles&#x27;
    

### What is the buggy behaviour?

*   User can select current role they&#x27;re editing in the &#x27;Copy to other roles&#x27; modal
    
*   It&#x27;s not malfunctioning but it&#x27;s useless
    

### What is the expected behaviour?

1.  Role that is currently being edited is not selectable in &#x27;Copy to other roles&#x27; modal
    

###   

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/926242/content">

### Environment information

**OpenProject version**

Core build

[776375aaab675c2c67cf8ef840eae2348bea8430](https://qa.openproject-edge.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fopenproject%2Fcommit%2F776375aaab675c2c67cf8ef840eae2348bea8430)

Product version

[370d7f8956ceb3f4eb9a1dd7592210b436a92e12](https://qa.openproject-edge.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fsaas-openproject%2Fcommit%2F370d7f8956ceb3f4eb9a1dd7592210b436a92e12)

Core version

OpenProject 18.0.0

**Browser**

*   [ ] Chrome
*   [x] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Operating System**

*   [x] Windows
*   [ ] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)
