Sorting for all listings & bugfixes for all listings except Newsletters

- newsletters listing now uses hash history
- newsletters are sorted by Subject (a->z)
- segments are sorted by Name (a->z)
- re-added WordPress Users list as a segment you can send a newsletter to
- added explicit error messages when an auto newsletter isn't fully configured
- added missing strings for "selectAll" in Segments listing
- fixed filters() in Subscribers listing (wrong count as it was not taking groups/filters/search into account)
This commit is contained in:
Jonathan Labreuille
2016-06-20 16:23:27 +02:00
parent 7af2775972
commit 68c09b8678
15 changed files with 136 additions and 95 deletions

View File

@ -132,10 +132,11 @@ class Segment extends Model {
static function groupBy($orm, $group = null) {
if($group === 'trash') {
return $orm->whereNotNull('deleted_at');
$orm->whereNotNull('deleted_at');
} else {
$orm = $orm->whereNull('deleted_at');
$orm->whereNull('deleted_at');
}
return $orm;
}
static function getSegmentsWithSubscriberCount() {