Skip to content

Room filters (capacity and type) do not work correctly #226

@PeViz

Description

@PeViz

Steps to reproduce

Describe the bug

Room filtering in Calendar does not behave correctly when using room type and minimum capacity filters.

  • Boolean filters (e.g. has projector) work correctly.
  • However:
    • Room type filter returns no results, even when matching rooms exist.
    • Minimum capacity filter returns incorrect results (e.g. rooms with lower capacity than requested).

Additionally, search requires entering part of the room name; filters alone do not return any results.


Steps to reproduce

  1. Create a room via occ:
php occ calendar-resource:room:create \
  --has-projector=1 \
  --wheelchair-accessible=0 \
  --capacity=8 \
  --room-number=103 \
  1 \
  "adminrece" \
  "Zasedačka recepce" \
  "zasrecepce@remak.cz" \
  "Meeting room"
  1. Open Calendar → create new event
  2. In room/resource selection:
    • Try filtering by room type = "Meeting room"
    • Try filtering by minimum capacity = 500
    • Try filtering by has projector = yes

Expected behavior

  • Room type filter should return rooms with matching room_type
  • Minimum capacity filter should only return rooms with capacity ≥ requested value
  • Filters should work independently of text search

Actual behavior

  • Room type filter returns no results
  • Minimum capacity filter returns incorrect rooms (e.g. capacity 8 when 500 is requested)
  • Boolean filters (e.g. projector) work correctly
  • Rooms are only found if part of their name/email is entered in the search field

Environment

  • Nextcloud: 33.x
  • Calendar app: 6.2.1
  • calendar_resource_management: 0.11.0
  • Background jobs: cron (running every 5 minutes)

Additional context

  • Rooms are correctly created and visible in “Show all rooms”
  • calendar-resource:list shows correct values (capacity, type, etc.)
  • Issue appears to affect only filtering/search in UI
  • Possibly related to localization (UI shows translated "Zasedací místnost" for "Meeting room")

Summary

Room filtering is inconsistent:

  • boolean filters work
  • type and capacity filters do not

This makes room selection unreliable without knowing the exact room name.

Expected behavior

described up

Actual behavior

described up

App version

No response

Additional info

described up

Metadata

Metadata

Assignees

No one assigned

    Labels

    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