FIX Error on emailreminder not reported
This commit is contained in:
parent
4979b43ebc
commit
4dcd7955ef
2 changed files with 8 additions and 1 deletions
|
|
@ -2447,6 +2447,7 @@ if ($id > 0) {
|
|||
print ' ('.$tmpuserstatic->getNomUrl(0, '', 0, 0, 16).')';
|
||||
}
|
||||
print ' - '.$actioncommreminder->offsetvalue.' '.$TDurationTypes[$actioncommreminder->offsetunit];
|
||||
|
||||
if ($actioncommreminder->status == $actioncommreminder::STATUS_TODO) {
|
||||
print ' - <span class="opacitymedium">';
|
||||
print $langs->trans("NotSent");
|
||||
|
|
@ -2455,6 +2456,10 @@ if ($id > 0) {
|
|||
print ' - <span class="opacitymedium">';
|
||||
print $langs->trans("Done");
|
||||
print ' </span>';
|
||||
} elseif ($actioncommreminder->status == $actioncommreminder::STATUS_ERROR) {
|
||||
print ' - <span class="opacitymedium">';
|
||||
print $form->textwithpicto($langs->trans("Error"), $actioncommreminder->lasterror);
|
||||
print ' </span>';
|
||||
}
|
||||
print '<br>';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2414,7 +2414,7 @@ class ActionComm extends CommonObject
|
|||
$this->reminders = array();
|
||||
|
||||
//Select all action comm reminders for event
|
||||
$sql = "SELECT rowid as id, typeremind, dateremind, status, offsetvalue, offsetunit, fk_user";
|
||||
$sql = "SELECT rowid as id, typeremind, dateremind, status, offsetvalue, offsetunit, fk_user, fk_email_template, lasterror";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."actioncomm_reminder";
|
||||
$sql .= " WHERE fk_actioncomm = ".((int) $this->id);
|
||||
if ($onlypast) {
|
||||
|
|
@ -2446,6 +2446,8 @@ class ActionComm extends CommonObject
|
|||
$tmpactioncommreminder->offsetunit = $obj->offsetunit;
|
||||
$tmpactioncommreminder->status = $obj->status;
|
||||
$tmpactioncommreminder->fk_user = $obj->fk_user;
|
||||
$tmpactioncommreminder->fk_email_template = $obj->fk_email_template;
|
||||
$tmpactioncommreminder->lasterror = $obj->lasterror;
|
||||
|
||||
$this->reminders[$obj->id] = $tmpactioncommreminder;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue