Skip to content

Setting all items in a sales order returns 400 but does delete the order #4024

Description

@JAicewizard

Describe the bug

How to reproduce

  1. Create an order
  2. Send a payload to https://staging.thalia.nu/api/v2/sales/orders/{ID} with an empty items as payload

Expected behaviour

It should return a 400 and not delete the order

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that should be fixedpriority: lowShould be dealt with when nothing else remains.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions