# Bug OP-15207 - Missing custom action strategy for custom fields with field format link (URL)

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.2.0 |
| Observed in versions | 14.1.0 |
| Sprint | 14.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 14.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 | Attila Dombi |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Create a work package custom field with the field format Link (URL)
    
2.  Try to create a new custom action or edit an existing one
    

### What is the buggy behavior?

*   the request fails with an internal server error (500)
    

### What is the expected behavior?

*   it should work
    

### **Logs**

```text
wrong argument type nil (expected Module)

app/models/custom_actions/actions/custom_field.rb:72 include	
app/models/custom_actions/actions/custom_field.rb:72 create_subclass	
app/models/custom_actions/actions/custom_field.rb:54 block in all	
app/models/custom_actions/actions/custom_field.rb:53 map	
app/models/custom_actions/actions/custom_field.rb:53 all	
app/models/custom_action.rb:78 map	
app/models/custom_action.rb:78 available_actions	
app/models/custom_action.rb:74 all_actions	
app/views/custom_actions/_form.html.erb:1	
app/views/custom_actions/edit.html.erb:38	
app/helpers/application_helper.rb:305 labelled_tabular_form_for	
app/views/custom_actions/edit.html.erb:37
```

The problem being that `CustomActions::Actions::CustomField.stategy` return nil for the field format `link`.

### Environment information

**OpenProject installation type**

*   [x] Hosted cloud edition
*   [ ] Packaged installation
    *   What distribution?
        
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

_v14.1.0_
