Fix private message type
This commit is contained in:
parent
b2187c829a
commit
7dcb871048
@ -658,10 +658,12 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no
|
|||||||
$out .= ' <span class="messaging-title">';
|
$out .= ' <span class="messaging-title">';
|
||||||
|
|
||||||
|
|
||||||
|
if($actionstatic->code == 'TICKET_MSG') {
|
||||||
if($actionstatic->code == 'TICKET_MSG') {
|
$out .= $langs->trans('TicketNewMessage');
|
||||||
$out .= $langs->trans('TicketNewMessage');
|
}
|
||||||
}else{
|
elseif($actionstatic->code == 'TICKET_MSG_PRIVATE') {
|
||||||
|
$out .= $langs->trans('TicketNewMessage').' <em>('.$langs->trans('Private').')</em>';
|
||||||
|
}else{
|
||||||
if (isset($histo[$key]['type']) && $histo[$key]['type'] == 'action') {
|
if (isset($histo[$key]['type']) && $histo[$key]['type'] == 'action') {
|
||||||
$transcode = $langs->trans("Action" . $histo[$key]['acode']);
|
$transcode = $langs->trans("Action" . $histo[$key]['acode']);
|
||||||
$libelle = ($transcode != "Action" . $histo[$key]['acode'] ? $transcode : $histo[$key]['alabel']);
|
$libelle = ($transcode != "Action" . $histo[$key]['acode'] ? $transcode : $histo[$key]['alabel']);
|
||||||
|
|||||||
@ -59,6 +59,11 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeline > li.timeline-code-ticket_msg_private > .timeline-item {
|
||||||
|
background: #fffbe5;
|
||||||
|
}
|
||||||
|
|
||||||
.timeline > li > .timeline-item > .time{
|
.timeline > li > .timeline-item > .time{
|
||||||
color: #6f6f6f;
|
color: #6f6f6f;
|
||||||
float: right;
|
float: right;
|
||||||
|
|||||||
@ -1631,6 +1631,9 @@ class Ticket extends CommonObject
|
|||||||
$actioncomm=new ActionComm($this->db);
|
$actioncomm=new ActionComm($this->db);
|
||||||
$actioncomm->type_code = 'AC_OTH_AUTO';
|
$actioncomm->type_code = 'AC_OTH_AUTO';
|
||||||
$actioncomm->code = 'TICKET_MSG';
|
$actioncomm->code = 'TICKET_MSG';
|
||||||
|
if($this->private){
|
||||||
|
$actioncomm->code = 'TICKET_MSG_PRIVATE';
|
||||||
|
}
|
||||||
$actioncomm->socid = $this->socid;
|
$actioncomm->socid = $this->socid;
|
||||||
$actioncomm->label = $this->subject;
|
$actioncomm->label = $this->subject;
|
||||||
$actioncomm->note_private = $this->message;
|
$actioncomm->note_private = $this->message;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user