Email and file : correct mimetype and fix comment in FollowUp
This commit is contained in:
parent
5d00fd3cf4
commit
26faafc00a
3 changed files with 3 additions and 3 deletions
|
|
@ -632,7 +632,7 @@ class Follow_Up
|
|||
if (noalyss_trim($this->ag_comment??"")!='' && Document_Option::can_add_comment($this->ag_id))
|
||||
{
|
||||
$this->db->exec_sql("insert into action_gestion_comment (ag_id,tech_user,agc_comment,agc_comment_raw) values ($1,$2,$3,$4)"
|
||||
, array($this->ag_id, $_SESSION[SESSION_KEY.'g_user'], strip_tags($this->ag_description),$this->ag_comment));
|
||||
, array($this->ag_id, $_SESSION[SESSION_KEY.'g_user'], strip_tags($this->ag_comment),$this->ag_comment));
|
||||
}
|
||||
if (noalyss_trim($this->ag_description)!='' && Document_Option::can_add_comment($this->ag_id))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ class FileToSend
|
|||
$this->type="application/zip";
|
||||
break;
|
||||
default:
|
||||
$this->type="application/octet";
|
||||
$this->type=" ";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ eof;
|
|||
|
||||
$file = $this->afile[$i];
|
||||
$file_size = filesize($file->full_name);
|
||||
$mimetype= mime_content_type($file->full_name);
|
||||
$mimetype=( $file->type=="")?mime_content_type($file->full_name):$file->type;
|
||||
$handle = fopen($file->full_name, "r");
|
||||
if ( $handle == false ){
|
||||
\record_log("SC159 ".var_export($file,true));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue