From 4cd2815304fe40de3da9b58e3adac2a7422a6654 Mon Sep 17 00:00:00 2001 From: Tunbola Ogunwande Date: Fri, 30 Apr 2021 15:36:24 +0100 Subject: [PATCH] CPS-583: Parse category as integer before comparison --- ang/civicase-base/providers/case-type.provider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ang/civicase-base/providers/case-type.provider.js b/ang/civicase-base/providers/case-type.provider.js index 8b66adbf3..29d4fc47f 100644 --- a/ang/civicase-base/providers/case-type.provider.js +++ b/ang/civicase-base/providers/case-type.provider.js @@ -99,7 +99,7 @@ */ function getByCategory (categoryValue) { return _.filter(caseTypes, function (caseType) { - return caseType.case_type_category === categoryValue; + return parseInt(caseType.case_type_category) === parseInt(categoryValue); }); }