//On recherche le type de document attaché à ce courrier
}
$stmt=$db->query('SELECT r.type_id, r.creation_date, m.category_id FROM res_letterbox r INNER JOIN mlb_coll_ext m ON m.res_id = r.res_id WHERE r.res_id = ?',array($_SESSION['doc_id']));
$mail_doctype=$stmt->fetchObject();
$type_id=$mail_doctype->type_id;
...
...
@@ -1065,7 +1070,6 @@ if (isset($_REQUEST['id'])) {
if ($j('#'+attachment_type.id+' option:selected').attr("width_delay")!=''&&$j('#'+attachment_type.id+' option:selected').attr("width_delay")!=undefined){
if ($j('#'+attachment_type.id+' option:selected').attr("width_delay")!=''&&$j('#'+attachment_type.id+' option:selected').attr("width_delay")!=undefined){