This commit is contained in:
Thibault Richy 2019-02-28 09:40:26 +01:00
parent 2e94482d5e
commit 4cac45e24c

View file

@ -299,7 +299,7 @@ class AjaxController extends Controller
$contact = Contact::where(['contact_hash' => $contact_hash])->first();
$coupons = $campagne->coupons;
$allLogs = Log::where(['log_refsite' => $campagne->camp_siteId, 'log_statut' => 'OK'])->orderBy('created_at', 'DESC')->get();
$allLogs = Log::where(['log_refsite' => $campagne->camp_siteId, 'log_contactId' => $contact->contact_id, 'log_statut' => 'OK'])->orderBy('created_at', 'DESC')->get();
$logs = array();
foreach ($allLogs as &$l) {
$params = json_decode($l->log_params);