File search containing a single " causes lockup #332
This commit is contained in:
parent
89446d26e9
commit
6776453005
|
@ -204,7 +204,7 @@ exports.getModule = class FileAreaList extends MenuModule {
|
||||||
},
|
},
|
||||||
function display(callback) {
|
function display(callback) {
|
||||||
return self.displayBrowsePage(false, err => {
|
return self.displayBrowsePage(false, err => {
|
||||||
if(err && 'NORESULTS' === err.reasonCode) {
|
if(err) {
|
||||||
self.gotoMenu(self.menuConfig.config.noResultsMenu || 'fileBaseListEntriesNoResults');
|
self.gotoMenu(self.menuConfig.config.noResultsMenu || 'fileBaseListEntriesNoResults');
|
||||||
}
|
}
|
||||||
return callback(err);
|
return callback(err);
|
||||||
|
@ -740,7 +740,7 @@ exports.getModule = class FileAreaList extends MenuModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
FileEntry.findFiles(filterCriteria, (err, fileIds) => {
|
FileEntry.findFiles(filterCriteria, (err, fileIds) => {
|
||||||
this.fileList = fileIds;
|
this.fileList = fileIds || [];
|
||||||
return cb(err);
|
return cb(err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue