Skip to content

Commit

Permalink
Fix filtering to admin bulk mail
Browse files Browse the repository at this point in the history
  • Loading branch information
o-psi committed Feb 15, 2024
1 parent 466fbc0 commit 671cdd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions admin_bulk_mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
$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"
);
Expand Down
4 changes: 0 additions & 4 deletions client_bulk_mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
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"
);
Expand Down

0 comments on commit 671cdd9

Please sign in to comment.