- Displays statistics in newsletter listing
This commit is contained in:
committed by
Tautvidas Sipavičius
parent
67ca305b7f
commit
18f35b5e91
@ -203,11 +203,13 @@ class Newsletters {
|
||||
$listing_data = $listing->get();
|
||||
|
||||
foreach($listing_data['items'] as $key => $newsletter) {
|
||||
$listing_data['items'][$key] = $newsletter
|
||||
$newsletter = $newsletter
|
||||
->withSegments()
|
||||
->withSendingQueue()
|
||||
->withStatistics()
|
||||
->asArray();
|
||||
->withSendingQueue();
|
||||
if((boolean) Setting::getValue('tracking.enabled')) {
|
||||
$newsletter = $newsletter->withStatistics();
|
||||
}
|
||||
$listing_data['items'][$key] = $newsletter->asArray();
|
||||
}
|
||||
|
||||
return $listing_data;
|
||||
|
Reference in New Issue
Block a user