[PREMIUM-38]
This commit is contained in:
Pavel Dohnal
2017-10-11 16:07:44 +01:00
parent 0271675cd0
commit 6a73c463cb
2 changed files with 7 additions and 7 deletions

View File

@@ -213,7 +213,7 @@ class Segment extends Model {
static function listingQuery(array $data = array()) {
$query = self::select('*');
$query->whereIn('type', array(Segment::TYPE_WP_USERS, Segment::TYPE_DEFAULT));
if (isset($data['group'])) {
if(isset($data['group'])) {
$query->filter('groupBy', $data['group']);
}
return $query;