зеркало из https://github.com/mozilla/gecko-dev.git
fix custom headers available operators, r/sr=mscott, a=chofmann, part of 224318
This commit is contained in:
Родитель
8d96101a33
Коммит
384177cadd
|
@ -615,8 +615,12 @@ nsMsgSearchValidityManager::InitOfflineMailFilterTable()
|
|||
|
||||
m_offlineMailFilterTable->SetAvailable (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::Contains, 1);
|
||||
m_offlineMailFilterTable->SetEnabled (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::Contains, 1);
|
||||
m_offlineMailFilterTable->SetAvailable (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::DoesntContain, 1);
|
||||
m_offlineMailFilterTable->SetEnabled (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::DoesntContain, 1);
|
||||
m_offlineMailFilterTable->SetAvailable (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::Is, 1);
|
||||
m_offlineMailFilterTable->SetEnabled (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::Is, 1);
|
||||
m_offlineMailFilterTable->SetAvailable (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::Isnt, 1);
|
||||
m_offlineMailFilterTable->SetEnabled (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::Isnt, 1);
|
||||
m_offlineMailFilterTable->SetAvailable (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::BeginsWith, 1);
|
||||
m_offlineMailFilterTable->SetEnabled (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::BeginsWith, 1);
|
||||
m_offlineMailFilterTable->SetAvailable (nsMsgSearchAttrib::OtherHeader, nsMsgSearchOp::EndsWith, 1);
|
||||
|
|
|
@ -971,7 +971,7 @@ nsMsgSearchValidityTable::GetAvailableOperators(nsMsgSearchAttribValue aAttribut
|
|||
if (aAttribute == nsMsgSearchAttrib::Default)
|
||||
attr = m_defaultAttrib;
|
||||
else
|
||||
attr = aAttribute;
|
||||
attr = PR_MIN(aAttribute, nsMsgSearchAttrib::OtherHeader);
|
||||
|
||||
PRUint32 totalOperators=0;
|
||||
PRInt32 i;
|
||||
|
|
Загрузка…
Ссылка в новой задаче