mirror of https://github.com/itflow-org/itflow
Fix filtering to admin bulk mail
This commit is contained in:
parent
466fbc03ca
commit
671cdd9832
|
|
@ -5,6 +5,10 @@ require_once "inc_all_admin.php";
|
|||
$sql = mysqli_query($mysqli, "SELECT * FROM contacts
|
||||
WHERE contact_archived_at IS NULL
|
||||
AND contact_email != ''
|
||||
AND (contact_primary = 1 OR
|
||||
contact_important = 1 OR
|
||||
contact_billing = 1 OR
|
||||
contact_technical = 1)
|
||||
ORDER BY contact_primary DESC,
|
||||
contact_important DESC"
|
||||
);
|
||||
|
|
|
|||
|
|
@ -5,10 +5,6 @@ $sql = mysqli_query($mysqli, "SELECT * FROM contacts
|
|||
WHERE contact_client_id = $client_id
|
||||
AND contact_archived_at IS NULL
|
||||
AND contact_email != ''
|
||||
AND (contact_primary = 1 OR
|
||||
contact_important = 1 OR
|
||||
contact_billing = 1 OR
|
||||
contact_technical = 1)
|
||||
ORDER BY contact_primary DESC,
|
||||
contact_important DESC"
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue