# Bug OP-4695 - Saving filter-selected list CF with single value results in error

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 7.4.6 |
| Observed in versions |  |
| Sprint | 7.4.6 |
| 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

**Steps to reproduce**

  - Create multilist CF and assign to Task
  - Filter for Task and Multilist CF single value
  - Create new WP
  - Save WP

**Actual behavior**

Console error due to single HalResource being accessed as array.

    application.js:1198 TypeError: Cannot read property 'forEach' of undefined
        at WorkPackageChangeset.getLinkedValue (application.js:4894)
        at application.js:4858
        at application.js:1908
        at Et (application.js:1890)
        at application.js:1908
        at Function.ru (application.js:1930)
        at WorkPackageChangeset.mergeWithPayload (application.js:4851)
        at WorkPackageChangeset.buildPayloadFromChanges (application.js:4879)
        at WorkPackageChangeset.updateForm (application.js:4794)
        at WorkPackageChangeset.save (application.js:4814)
    (anonymous) @ application.js:1198
    (anonymous) @ application.js:1198
    $apply @ application.js:1198
    (anonymous) @ application.js:1198
    dispatch @ application.js:1091
    g.handle @ application.js:1091
