List selection fix

This commit is contained in:
Jonathan Labreuille
2015-11-09 14:19:59 +01:00
parent e9110680ee
commit 893231e8e5
6 changed files with 57 additions and 54 deletions

View File

@@ -89,7 +89,7 @@ class Subscriber extends Model {
array(
'name' => 'all',
'label' => __('All'),
'count' => Subscriber::whereNull('deleted_at')->count()
'count' => Subscriber::getPublished()->count()
),
array(
'name' => 'subscribed',
@@ -109,7 +109,7 @@ class Subscriber extends Model {
array(
'name' => 'trash',
'label' => __('Trash'),
'count' => Subscriber::whereNotNull('deleted_at')->count()
'count' => Subscriber::getTrashed()->count()
)
);
}