|
@@ -2448,7 +2448,8 @@ class Ticket extends CommonObject
|
|
|
$destfile = $destdir.'/'.$pathinfo['filename'].' - '.dol_print_date($now, 'dayhourlog').'.'.$pathinfo['extension'];
|
|
|
}
|
|
|
|
|
|
- $res = dol_move($filepath[$i], $destfile, 0, 1, 0, 1);
|
|
|
+ $moreinfo = array('description'=>'File saved by copyFilesForTicket', 'src_object_type' => $this->element, 'src_object_id' => $this->id);
|
|
|
+ $res = dol_move($filepath[$i], $destfile, 0, 1, 0, 1, $moreinfo);
|
|
|
if (!$res) {
|
|
|
// Move has failed
|
|
|
$this->error = "Failed to move file ".dirbasename($filepath[$i])." into ".dirbasename($destfile);
|