Debug v23
This commit is contained in:
parent
26c3e3a1af
commit
f97f73aa2a
3 changed files with 16 additions and 0 deletions
|
|
@ -762,6 +762,13 @@ class BlockedLog
|
|||
if (!empty($object->newref)) {
|
||||
$this->object_data->ref = $object->newref;
|
||||
}
|
||||
|
||||
// Information on email
|
||||
$this->object_data->action_email_sent = array(
|
||||
"email_from" => $object->context['email_from'],
|
||||
"email_to" => $object->context['email_to'],
|
||||
"email_msgid" => $object->context['email_msgid']
|
||||
);
|
||||
} elseif ($this->element == 'invoice_supplier') {
|
||||
'@phan-var-force FactureFournisseur $object';
|
||||
foreach ($object as $key => $value) {
|
||||
|
|
|
|||
|
|
@ -6444,6 +6444,7 @@ class Facture extends CommonInvoice
|
|||
$actioncomm->userownerid = $user->id; // Owner of action
|
||||
// Fields when action is an email (content should be added into note)
|
||||
$actioncomm->email_msgid = $cMailFile->msgid;
|
||||
$actioncomm->email_subject = $sendTopic;
|
||||
$actioncomm->email_from = $from;
|
||||
$actioncomm->email_sender = '';
|
||||
$actioncomm->email_to = $to;
|
||||
|
|
|
|||
|
|
@ -446,6 +446,14 @@ if (($action == 'send' || $action == 'relance') && !GETPOST('addfile') && !GETPO
|
|||
$object->sendtouserid = $sendtouserid;
|
||||
}
|
||||
|
||||
// TODO Fix this: Such properties does not exists on all objects
|
||||
$object->context['email_msgid'] = $mailfile->msgid;
|
||||
$object->context['email_from'] = $from;
|
||||
$object->context['email_subject'] = $subject;
|
||||
$object->context['email_to'] = $sendto;
|
||||
$object->context['email_tocc'] = $sendtocc;
|
||||
$object->context['email_tobcc'] = $sendtobcc;
|
||||
|
||||
$object->email_msgid = $mailfile->msgid; // @todo Set msgid into $mailfile after sending
|
||||
$object->email_from = $from;
|
||||
$object->email_subject = $subject;
|
||||
|
|
|
|||
Loading…
Reference in a new issue