Skip to content

🐛 Reordering product categories fails when hidden categories exist #1126

Closed

Description

@LogFlames

Describe the bug

Reordering product categories via POST /events/{event_id}/products/sort fails with "The ordered category IDs must exactly match all categories for the event without missing or extra IDs." even when all category IDs from GET /events/{event_id}/product-categories are included.

The root cause is a mismatch between the two endpoints:

Since the client never receives hidden category IDs, it's impossible to include them in the sort request.

To Reproduce

  1. Create an event with at least one product category where is_hidden = true
  2. Open the event's product management page
  3. Try to reorder product categories via drag & drop
  4. The sort request fails with the error above

Expected behavior

Reordering should succeed. Hidden categories should either be excluded from the sort handler's validation check, or the listing endpoint should expose them to organizer-facing callers.

Suggested fix

Show hidden categories in admin panel to allow reordering them (and make "hidden" mean hidden for the consumer).

Activity

  1. changed the title [-]🐛[/-] [+]🐛 Reordering product categories fails when hidden categories exist[/+] on Mar 26, 2026
  2. Viburnum commented on Mar 29, 2026

    @Viburnum
    Contributor

    @LogFlames Shouldn't the hidden categories be visible in manage/admin view and only hidden for the customer?
    Because I just stumpled upon the issue, while creating a category for guest-list related tickets, which I want to hide for the customer and manually create tickets in the attendee manager view.

  3. LogFlames commented on Mar 30, 2026

    @LogFlames
    ContributorAuthor

    @Viburnum that sounds more reasonable, I agree. Otherwise, it would just be another version of deleting the categories. I have updated my suggested fix.

  4. Viburnum commented on Mar 31, 2026

    @Viburnum
    Contributor

    I added a PR #1138

  5. daveearley commented on Oct 24, 2026

    @daveearley
    Contributor

    Closing because hidden categories now appear in the event's manage view, so reordering includes them and no longer fails (#1138, since v1.9.0-beta and in v2.0.0).

    This issue was closed by AI, as part of checking open issues against the latest release. If this is a mistake, please let us know here and we'll reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions