Merge pull request #759 from mailpoet/deleted_lists_fix

Show deleted lists in newsletter listings [MAILPOET-489]
This commit is contained in:
mrcasual
2016-12-27 11:26:59 -05:00
committed by GitHub
3 changed files with 46 additions and 4 deletions

View File

@@ -312,7 +312,7 @@ class Newsletters extends APIEndpoint {
if($newsletter->type === Newsletter::TYPE_STANDARD) {
$newsletter
->withSegments()
->withSegments(true)
->withSendingQueue()
->withStatistics();
} else if($newsletter->type === Newsletter::TYPE_WELCOME) {
@@ -323,11 +323,11 @@ class Newsletters extends APIEndpoint {
} else if($newsletter->type === Newsletter::TYPE_NOTIFICATION) {
$newsletter
->withOptions()
->withSegments()
->withSegments(true)
->withChildrenCount();
} else if($newsletter->type === Newsletter::TYPE_NOTIFICATION_HISTORY) {
$newsletter
->withSegments()
->withSegments(true)
->withSendingQueue()
->withStatistics();
}