From 27e1317888db7cba15899f6188554b672991b8e9 Mon Sep 17 00:00:00 2001 From: Andrej Date: Mon, 4 Mar 2024 15:29:31 +0100 Subject: [PATCH] Fix project table sorting by users [SCI-10349] --- app/services/lists/projects_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/lists/projects_service.rb b/app/services/lists/projects_service.rb index 44c7cc6a8..fd0259648 100644 --- a/app/services/lists/projects_service.rb +++ b/app/services/lists/projects_service.rb @@ -139,7 +139,7 @@ module Lists end def project_users_count(object) - project?(object) ? object.users.count : 0 + project?(object) ? object.users.count : -1 end def project?(object)