SEARCH-433

- Fixed attachment case issue
This commit is contained in:
Keerthi Niranjan 2017-11-08 21:46:27 +05:30
parent 48610c3681
commit ea927ae841

View File

@ -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 +"))";