Răsfoiți Sursa

Update email address export to take newsletter consent into account

Alan Lam 8 ani în urmă
părinte
comite
e36925b14c
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      controllers/users_export.php

+ 2 - 1
controllers/users_export.php

@@ -10,7 +10,8 @@ switch($type) {
 		fputcsv($handle, ["first_name", "last_name", "email"]);
 
 		$users = User::query([
-			"email" => (new Constraint("IS_NOT_NULL"))
+			"email" => (new Constraint("IS_NOT_NULL")),
+			"newsletter_consent" => 1,
 		]);
 
 		foreach($users as $user) {