Merge pull request #228 from keerthi16/SEARCH-433

Search 433 (Attachment search does not work when Electron search is enabled)
This commit is contained in:
Vikas Shashidhar 2017-11-09 14:53:43 +05:30 committed by GitHub
commit 6b1cb11db7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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