SEARCH-433

- Fixed attachment case issue
This commit is contained in:
Keerthi Niranjan 2017-11-08 21:49:51 +05:30
parent ea927ae841
commit 52fbfb7456

View File

@ -353,7 +353,7 @@ class Search {
let additionalAttachmentQuery = "";
if(fileType) {
hasAttachments = true;
if(fileType.toLocaleUpperCase() === "attachment") {
if(fileType.toLowerCase() === "attachment") {
additionalAttachmentQuery = "(hasfiles:true)";
} else {
additionalAttachmentQuery = "(filetype:(" + fileType +"))";