Fixed created_at date in bulk add action in subscribers list [MAILPOET-1311]

This commit is contained in:
Rostislav Wolny
2018-03-02 13:52:11 +01:00
parent 2265de454e
commit a58a3c9574

View File

@ -102,8 +102,8 @@ class SubscriberSegment extends Model {
$query = array(
'INSERT IGNORE INTO `'.self::$_table.'`',
'(`subscriber_id`, `segment_id`)',
'VALUES '.rtrim(str_repeat('(?, ?),', $row_count), ',')
'(`subscriber_id`, `segment_id`, `created_at`)',
'VALUES '.rtrim(str_repeat('(?, ?, NOW()),', $row_count), ',')
);
self::rawExecute(join(' ', $query), $values);