Bug 510249 - "Custom search terms called with 0 for search scope" [r=neil sr=bienvenu]

This commit is contained in:
Kent James 2009-08-18 09:12:19 +01:00
Родитель bfdb7c7550
Коммит 5f50e4498e
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1014,7 +1014,7 @@
.QueryInterface(Components.interfaces.nsIMsgSearchCustomTerm);
// for custom terms, the array element is a string with the custom id
// instead of the integer attribute
if (customTerm.getAvailable(this.scope, null))
if (customTerm.getAvailable(this.searchScope, null))
result.push(customTerm.id);
}
return result;
@ -1096,7 +1096,7 @@
{
let customTerm = this.filterService.getCustomTerm(this.searchAttribute);
if (customTerm)
return customTerm.getAvailableOperators(this.scope, length);
return customTerm.getAvailableOperators(this.searchScope, length);
return [Components.interfaces.nsMsgSearchOp.Contains];
}
return this.validityTable.getAvailableOperators(this.searchAttribute,length);

Просмотреть файл

@ -990,7 +990,7 @@
.QueryInterface(Components.interfaces.nsIMsgSearchCustomTerm);
// for custom terms, the array element is a string with the custom id
// instead of the integer attribute
if (customTerm.getAvailable(this.scope, null))
if (customTerm.getAvailable(this.searchScope, null))
result.push(customTerm.id);
}
return result;
@ -1072,7 +1072,7 @@
{
let customTerm = this.filterService.getCustomTerm(this.searchAttribute);
if (customTerm)
return customTerm.getAvailableOperators(this.scope, length);
return customTerm.getAvailableOperators(this.searchScope, length);
return [Components.interfaces.nsMsgSearchOp.Contains];
}
return this.validityTable.getAvailableOperators(this.searchAttribute,length);