diff --git a/mail/base/content/mailWidgets.xml b/mail/base/content/mailWidgets.xml index 94df30bc3e..9b3d06a695 100644 --- a/mail/base/content/mailWidgets.xml +++ b/mail/base/content/mailWidgets.xml @@ -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); diff --git a/suite/mailnews/mailWidgets.xml b/suite/mailnews/mailWidgets.xml index 1b9de19662..073109f9ee 100644 --- a/suite/mailnews/mailWidgets.xml +++ b/suite/mailnews/mailWidgets.xml @@ -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);