) {
$params['replyto_email'] = $params['from_email'];
}
-
$mailing->copyValues($params);
+ // CRM-20892 Unset Modifed Date here so that MySQL can correctly set an updated modfied date.
+ unset($mailing->modified_date);
$result = $mailing->save();
+ // CRM-20892 Re find record after saing so we can set the updated modified date in the result.
+ $mailing->find(TRUE);
+
+ if (isset($mailing->modified_date)) {
+ $result->modified_date = $mailing->modified_date;
+ }
+
if (!empty($ids['mailing'])) {
CRM_Utils_Hook::post('edit', 'Mailing', $mailing->id, $mailing);
}