Commit 2efd34c0 authored by Anael Mobilia's avatar Anael Mobilia
Browse files

Issue #1476 - fix bad display of attachment's date in a ticket

parent 5cd77a9e
......@@ -6047,7 +6047,10 @@ class Ticket extends CommonITILObject {
$document_items = $document_item_obj->find("itemtype = 'Ticket' AND items_id = ".$this->getID());
foreach ($document_items as $document_item) {
$document_obj->getFromDB($document_item['documents_id']);
$timeline[$document_obj->fields['date_mod']."_document_".$document_item['documents_id']]
// #1476 - override document date_mod to ticket attachment date_mod
$document_obj->fields['date_mod'] = $document_item['date_mod'];
$timeline[$document_item['date_mod']."_document_".$document_item['documents_id']]
= array('type' => 'Document_Item', 'item' => $document_obj->fields);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment