Fix segment and newsletter listing SQL to work with ONLY_FULL_GROUP_BY

[MAILPOET-3115]
This commit is contained in:
Rostislav Wolny
2020-08-26 10:15:16 +02:00
committed by Veljko V
parent d89e68fd2c
commit 5550f5eef2
2 changed files with 2 additions and 0 deletions

View File

@@ -268,6 +268,7 @@ class Segment extends Model {
[MP_SUBSCRIBER_SEGMENT_TABLE . '.subscriber_id', '=', MP_SUBSCRIBERS_TABLE . '.id'])
->groupBy(self::$_table . '.id')
->groupBy(self::$_table . '.name')
->groupBy(self::$_table . '.type')
->orderByAsc(self::$_table . '.name')
->whereNull(self::$_table . '.deleted_at');