Skip to content
Snippets Groups Projects
Commit 0a2edaec authored by Pegane Nestor's avatar Pegane Nestor
Browse files

FIX #5409 renamed wrong variable

parent 8df363b3
No related branches found
No related tags found
No related merge requests found
......@@ -1221,9 +1221,9 @@ if (isset($_REQUEST['id'])) {
//On recherche le type de document attaché à ce courrier
$stmt = $db->query('SELECT type_id, creation_date FROM res_letterbox WHERE res_id = ?', array($_SESSION['doc_id']));
$type_id = $stmt->fetchObject();
$type_id = $type_id->type_id;
$dataForDate = $type_id->creation_date;
$mail_doctype = $stmt->fetchObject();
$type_id = $mail_doctype->type_id;
$dataForDate = $mail_doctype->creation_date;
//On recherche le sve_type
$stmt = $db->query('SELECT * FROM mlb_doctype_ext WHERE type_id = ?', array($type_id));
$sve = $stmt->fetchObject();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment