~aleteoryx/muditaos

a2ba217b0696581e5a8a663c7e992f5679975e3f — pawpMudita 5 years ago d9f8fe1
EGD-4077 Re-enable support for temporary contacts in Phonebook main window
1 files changed, 5 insertions(+), 0 deletions(-)

M module-db/Tables/ContactsTable.cpp
M module-db/Tables/ContactsTable.cpp => module-db/Tables/ContactsTable.cpp +5 -0
@@ 170,6 170,11 @@ std::string ContactsTable::GetSortedByNameQueryString(ContactQuerySection sectio
                " INNER JOIN contact_name ON contact_name.contact_id == contacts._id "
                " LEFT JOIN contact_match_groups ON contact_match_groups.contact_id == contacts._id AND "
                " contact_match_groups.group_id = 1 "
                " WHERE contacts._id not in ( "
                "    SELECT cmg.contact_id "
                "    FROM contact_match_groups cmg, contact_groups cg "
                "    WHERE cmg.group_id = cg._id "
                "       AND cg.name = 'Temporary' ) "
                " ORDER BY  (contact_name.name_alternative ='') ASC "
                " , UPPER(contact_name.name_alternative) ; ";
    }