# Bug AUTOWORK-377 - Missing danger dialog when switching from block to allow list when project settings exist

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Work package administration, Administration / Custom fields |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | OP Dev Sirius Team |
| Accountable |  |
| Product manager |  |
| Developers |  |
| 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.  Go to Administration &gt; Work packages &gt; Custom fields
    
2.  Create or edit a list, hierarchy or weighted CF
    
3.  On CF Details page, toggle either allow or block filter
    
4.  On project tab, select a project and configure list
    
5.  Go back to Details tab
    
6.  Switch from allow to block list or vice versa
    

### What is the buggy behaviour?

*   No danger dialog
    

### What is the expected behaviour?

1.  As per the AC
    

> Switching to another mode, or switching it off, removes all project-specific settings of the custom field. When settings exist, the administrator has to confirm this in a danger dialog (same pattern as for disabling the allowlist)

### Screenshots and other files

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

### Environment information

**OpenProject version**

Core build

[f5b157e3b97f5356fbf34490ff923ffa685b5bf6](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fopenproject%2Fcommit%2Ff5b157e3b97f5356fbf34490ff923ffa685b5bf6)

Product version

[f933eaceac42c3d46449b45e6c26ce2c518f46b1](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fsaas-openproject%2Fcommit%2Ff933eaceac42c3d46449b45e6c26ce2c518f46b1)

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)
