2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Maximilien Rozniecki
2023-04-28 17:35:06 +02:00
parent 40d476d2c9
commit e9dcac67f0
2 changed files with 4 additions and 5 deletions

View File

@@ -12504,12 +12504,11 @@ function show_actions_messaging($conf, $langs, $db, $filterobj, $objcon = '', $n
} }
$out .= $userGetNomUrlCache[$histo[$key]['userid']]; $out .= $userGetNomUrlCache[$histo[$key]['userid']];
} }
else if (!empty($histo[$key]['msg_from']) && $actionstatic->code == 'TICKET_MSG') { elseif (!empty($histo[$key]['msg_from']) && $actionstatic->code == 'TICKET_MSG') {
if (!isset($contactGetNomUrlCache[$histo[$key]['msg_from']])) { if (!isset($contactGetNomUrlCache[$histo[$key]['msg_from']])) {
if ($contactstatic->fetch(0,null,'',$histo[$key]['msg_from']) > 0) { if ($contactstatic->fetch(0, null, '', $histo[$key]['msg_from']) > 0) {
$contactGetNomUrlCache[$histo[$key]['msg_from']] = $contactstatic->getNomUrl(-1, '', 16); $contactGetNomUrlCache[$histo[$key]['msg_from']] = $contactstatic->getNomUrl(-1, '', 16);
} } else {
else {
$contactGetNomUrlCache[$histo[$key]['msg_from']] = $histo[$key]['msg_from']; $contactGetNomUrlCache[$histo[$key]['msg_from']] = $histo[$key]['msg_from'];
} }
} }

View File

@@ -306,7 +306,7 @@ class ActionsTicket
if ($res) { if ($res) {
print $userstat->getNomUrl(0); print $userstat->getNomUrl(0);
} }
} else if (isset($arraymsgs['fk_contact_author'])) { } elseif (isset($arraymsgs['fk_contact_author'])) {
$contactstat = new Contact($this->db); $contactstat = new Contact($this->db);
$res = $contactstat->fetch(0, null, '', $arraymsgs['fk_contact_author']); $res = $contactstat->fetch(0, null, '', $arraymsgs['fk_contact_author']);
if ($res) { if ($res) {