From 213a0044dc51d72afec7c8d8d7e0aa9b5cc367dd Mon Sep 17 00:00:00 2001 From: sparkyx Date: Wed, 10 Dec 2025 17:44:59 +0100 Subject: [PATCH] Bug : file not loaded after inserting new operation --- include/class/acc_document.class.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/include/class/acc_document.class.php b/include/class/acc_document.class.php index f0b9aaf43..11e2ab5ab 100644 --- a/include/class/acc_document.class.php +++ b/include/class/acc_document.class.php @@ -371,7 +371,22 @@ class Acc_Document extends Document { \record_log($e); throw new \Exception("X281 ",281,$e); } - } + } else { + $this->d_lob=$oid; + $this->d_name=$_FILES['pj']['name']; + $this->d_description=$_FILES['pj']['type']; + + // save extracted document into DB + $this->db->exec_sql("update jrn set jr_pj=$1 , jr_pj_name=$2, + jr_pj_type=$3 where jr_id=$4", + array( + $this->d_lob + , $this->d_name + , $this->d_description + , $this->d_id + ) + ); + } $this->db->commit(); return $oid;