From 6a3adf0f22a2ce86197ef7e7bd6eb29e616727de Mon Sep 17 00:00:00 2001 From: Dirk Doesburg Date: Fri, 3 Dec 2021 10:58:34 +0100 Subject: [PATCH] Fix cancelled registrations in event admin (#164) --- lib/api_repository.dart | 2 +- lib/blocs/event_admin_cubit.dart | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/api_repository.dart b/lib/api_repository.dart index 507bc77c8..5398c78c6 100644 --- a/lib/api_repository.dart +++ b/lib/api_repository.dart @@ -378,7 +378,7 @@ class ApiRepository { if (offset != null) 'offset': offset.toString(), if (ordering != null) 'ordering': ordering, if (search != null) 'search': search, - if (cancelled != null) 'cancelled': cancelled, + if (cancelled != null) 'cancelled': cancelled.toString(), }, ); final response = await _handleExceptions(() => client.get(uri)); diff --git a/lib/blocs/event_admin_cubit.dart b/lib/blocs/event_admin_cubit.dart index b4fb6f00c..090be0a6d 100644 --- a/lib/blocs/event_admin_cubit.dart +++ b/lib/blocs/event_admin_cubit.dart @@ -91,6 +91,7 @@ class EventAdminCubit extends Cubit { pk: eventPk, search: query, limit: 999999999, + cancelled: false, ); if (registrations.results.isEmpty) { if (query?.isEmpty ?? true) { @@ -123,6 +124,7 @@ class EventAdminCubit extends Cubit { pk: eventPk, search: query, limit: 999999999, + cancelled: false, ); if (registrations.results.isEmpty) { if (query?.isEmpty ?? true) {