$error_detected[] = $e;
}
} else {
- $mlh = new MailingHistory($this->zdb, $this->login, null, $mailing);
+ $mlh = new MailingHistory($this->zdb, $this->login, $this->preferences, null, $mailing);
$mlh->storeMailing(true);
Analog::log(
'[Mailings] Message has been sent.',
if (isset($post['mailing_save'])) {
//user requested to save the mailing
- $histo = new MailingHistory($this->zdb, $this->login, null, $mailing);
+ $histo = new MailingHistory($this->zdb, $this->login, $this->preferences, null, $mailing);
if ($histo->storeMailing() !== false) {
$success_detected[] = _T("Mailing has been successfully saved.");
$this->session->mailing = null;
$filters->show = $request->getQueryParams()['nbshow'];
}
- $mailhist = new MailingHistory($this->zdb, $this->login, $filters);
+ $mailhist = new MailingHistory($this->zdb, $this->login, $this->preferences, $filters);
if ($option !== null) {
switch ($option) {
$mailhist->clean();
//reinitialize object after flush
$filters = new MailingsList();
- $mailhist = new MailingHistory($this->zdb, $this->login, $filters);
+ $mailhist = new MailingHistory($this->zdb, $this->login, $this->preferences, $filters);
break;
}
}
*/
protected function doDelete(array $args, array $post)
{
- $mailhist = new MailingHistory($this->zdb, $this->login);
+ $mailhist = new MailingHistory($this->zdb, $this->login, $this->preferences);
return $mailhist->removeEntries($args['id'], $this->history);
}
// /CRUD - Delete