noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 12/14: bug follow-up


From: dwm
Subject: [Noalyss-commit] [noalyss] 12/14: bug follow-up
Date: Sun, 4 Feb 2024 05:51:23 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit a73f1508a33e547add5c2df7280cf5a09be3e234
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Feb 3 16:13:09 2024 +0100

    bug follow-up
---
 include/class/follow_up.class.php | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/include/class/follow_up.class.php 
b/include/class/follow_up.class.php
index 8a3b426aa..f39b3c218 100644
--- a/include/class/follow_up.class.php
+++ b/include/class/follow_up.class.php
@@ -995,8 +995,12 @@ class Follow_Up
                                 where agc_id = $4 "
                     , array(strip_tags($this->ag_description), 
$this->ag_description, $_SESSION[SESSION_KEY.'g_user'],
                         $this->ag_description_id));
-            $this->db->exec_sql("insert into 
action_comment_document(document_id,action_gestion_comment_id) values ($1,$2)",
-                [$document_id,$this->ag_description_id]);
+            if ( ! empty ($document_saved)) {
+                foreach ($document_saved as $document_id) {
+                    $this->db->exec_sql("insert into 
action_comment_document(document_id,action_gestion_comment_id) values ($1,$2)",
+                        [$document_id,$this->ag_id]);
+                }
+            }
         }
         $this->insert_operation();
         $this->insert_action();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]