Skip to content

Handle empty facility type selection in filters correctly#1082

Merged
tom-karasch merged 2 commits into
Devfrom
1080-fix-the-export-to-excel-button
Jul 23, 2026
Merged

Handle empty facility type selection in filters correctly#1082
tom-karasch merged 2 commits into
Devfrom
1080-fix-the-export-to-excel-button

Conversation

@tom-karasch

Copy link
Copy Markdown
Member

Previously, when no facility types were selected in the filter specification (e.g., for an export), the query would inadvertently return no results. This update initializes FacilityTypeId to an empty list and ensures that an empty list bypasses the filter, allowing all facility types to be included. This resolves an issue with the Excel export button where no data was returned if the facility type filter was empty.

Previously, when no facility types were selected in the filter specification (e.g., for an export), the query would inadvertently return no results. This update initializes `FacilityTypeId` to an empty list and ensures that an empty list bypasses the filter, allowing all facility types to be included. This resolves an issue with the Excel export button where no data was returned if the facility type filter was empty.
@tom-karasch tom-karasch self-assigned this Jul 23, 2026
@tom-karasch tom-karasch added bug Something isn't working high priority Critical issue that should be addressed quickly labels Jul 23, 2026
@tom-karasch tom-karasch linked an issue Jul 23, 2026 that may be closed by this pull request
@tom-karasch tom-karasch added the Code Cleanup Use Best Practice coding label Jul 23, 2026
Adjust `FacilityNumberExists` and `FacilityEditDto` test cases to pass `FacilityTypeId`. This ensures tests properly validate facility numbers as unique within a specific facility type, aligning with the updated business logic.
@sonarqubecloud

Copy link
Copy Markdown

@tom-karasch
tom-karasch merged commit b7aa611 into Dev Jul 23, 2026
8 checks passed
@tom-karasch
tom-karasch deleted the 1080-fix-the-export-to-excel-button branch July 23, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Code Cleanup Use Best Practice coding high priority Critical issue that should be addressed quickly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix the Export to Excel button

1 participant