From ea927ae841f92847eac9b94958c4be7602146eff Mon Sep 17 00:00:00 2001 From: Keerthi Niranjan Date: Wed, 8 Nov 2017 21:46:27 +0530 Subject: [PATCH] SEARCH-433 - Fixed attachment case issue --- js/search/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/search/search.js b/js/search/search.js index 72b58afa..af971184 100644 --- a/js/search/search.js +++ b/js/search/search.js @@ -353,7 +353,7 @@ class Search { let additionalAttachmentQuery = ""; if(fileType) { hasAttachments = true; - if(fileType === "attachment") { + if(fileType.toLocaleUpperCase() === "attachment") { additionalAttachmentQuery = "(hasfiles:true)"; } else { additionalAttachmentQuery = "(filetype:(" + fileType +"))";