Bug 503417 -- Message searches and saved searches with tags broken. (Mozmill test_verify_saved_mail_view fails.) r+sr=Neil, blocking-tb3b3+, a=KaiRo for SM2.0b1

This commit is contained in:
Kent James 2009-07-12 19:26:12 +05:30
Родитель 590b9504c1
Коммит 5fac025cc2
2 изменённых файлов: 4 добавлений и 10 удалений

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

@ -1429,6 +1429,7 @@
var nsMsgSearchAttrib = Components.interfaces.nsMsgSearchAttrib;
var children = document.getAnonymousNodes(this);
searchValue.attrib = searchAttribute;
if (searchAttribute == nsMsgSearchAttrib.Priority) {
searchValue.priority = children[1].selectedItem.value;
}
@ -1464,17 +1465,13 @@
searchValue.status = 0x10000000; // 0x10000000 is MSG_FLAG_ATTACHMENT;
else if (searchAttribute == nsMsgSearchAttrib.JunkScoreOrigin)
searchValue.str = children[8].value;
if (isNaN(searchAttribute)) // a custom term
else if (isNaN(searchAttribute)) // a custom term
{
searchValue.attrib = nsMsgSearchAttrib.Custom;
searchValue.str = children[9].getAttribute("value");
}
else
{
searchValue.attrib = searchAttribute;
searchValue.str = children[0].value;
}
]]>
</body>
</method>

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

@ -1405,6 +1405,7 @@
var nsMsgSearchAttrib = Components.interfaces.nsMsgSearchAttrib;
var children = document.getAnonymousNodes(this);
searchValue.attrib = searchAttribute;
if (searchAttribute == nsMsgSearchAttrib.Priority) {
searchValue.priority = children[1].selectedItem.value;
}
@ -1440,17 +1441,13 @@
searchValue.status = 0x10000000; // 0x10000000 is MSG_FLAG_ATTACHMENT;
else if (searchAttribute == nsMsgSearchAttrib.JunkScoreOrigin)
searchValue.str = children[8].value;
if (isNaN(searchAttribute)) // a custom term
else if (isNaN(searchAttribute)) // a custom term
{
searchValue.attrib = nsMsgSearchAttrib.Custom;
searchValue.str = children[9].getAttribute("value");
}
else
{
searchValue.attrib = searchAttribute;
searchValue.str = children[0].value;
}
]]>
</body>
</method>