# Bug OP-9793 - "expected at least one error" - Work package errors in dependent work packages not displayed

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

## Open points

_No work packages_

## Details

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

### **Steps to reproduce:**

1.  Create a new OpenProject trial with a normal demo project
2.  Create a custom field, make it required and enable it for all projects
3.  Add it to the form configuration for the type "Phase"
4.  Go go Demo Project and try to move/drag WP <mention class="mention" data-id="3" data-type="work_package" data-text="#3">#3</mention> to make it a child of, say, WP <mention class="mention" data-id="7" data-type="work_package" data-text="#7">#7</mention>

### **Actual Behavior**

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

### **Expected Behavior**

The error message should say something along the lines of: "The work package couldn't be saved because WP\#2 is currently invalid\! Its custom field 'Foo' has an invalid value."

### Discussion

In the code collecting the errors for this work package update the errors from its parent (the missing custom field) are for some reason not included which is why `::API::Errors::MultipleErrors.create_if_many` gets passed an empty list of errors.
