From 8830a71b1d35c3a503a16ee8f84948da8cc41b38 Mon Sep 17 00:00:00 2001 From: Maximilien Rozniecki Date: Thu, 11 May 2023 14:41:49 +0200 Subject: [PATCH 1/3] Fix of a missing $conf --- htdocs/core/class/html.formaccounting.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/core/class/html.formaccounting.class.php b/htdocs/core/class/html.formaccounting.class.php index 3437d4fa050..965c6c4f13f 100644 --- a/htdocs/core/class/html.formaccounting.class.php +++ b/htdocs/core/class/html.formaccounting.class.php @@ -454,6 +454,7 @@ class FormAccounting extends Form public function select_auxaccount($selectid, $htmlname = 'account_num_aux', $showempty = 0, $morecss = 'minwidth100 maxwidth300 maxwidthonsmartphone', $usecache = '', $labelhtmlname = '') { // phpcs:enable + global $conf; $aux_account = array(); From 10fdb13a0299798a086ab029357861e82dc223b7 Mon Sep 17 00:00:00 2001 From: hystepik Date: Fri, 12 May 2023 11:20:25 +0200 Subject: [PATCH 2/3] Fix : makeStripeSepaRequest fatal error --- htdocs/core/class/commoninvoice.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/core/class/commoninvoice.class.php b/htdocs/core/class/commoninvoice.class.php index d93f25522ae..f23a26678fe 100644 --- a/htdocs/core/class/commoninvoice.class.php +++ b/htdocs/core/class/commoninvoice.class.php @@ -1001,6 +1001,7 @@ abstract class CommonInvoice extends CommonObject $this->db->begin(); // Create a prelevement_bon + require_once DOL_DOCUMENT_ROOT.'/compta/prelevement/class/bonprelevement.class.php'; $bon = new BonPrelevement($this->db); if (!$error) { if (empty($obj->fk_prelevement_bons)) { From 7cb535f2250ffc067ba542f105245e59b500387e Mon Sep 17 00:00:00 2001 From: Alban Durrheimer Date: Fri, 12 May 2023 16:29:09 +0200 Subject: [PATCH 3/3] Edit ticket class to create without fk_user_create --- htdocs/ticket/class/ticket.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index 158f3e30e2f..cf7c1f19a33 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -505,7 +505,7 @@ class Ticket extends CommonObject $sql .= " ".($this->fk_soc > 0 ? $this->db->escape($this->fk_soc) : "null").","; $sql .= " ".($this->fk_project > 0 ? $this->db->escape($this->fk_project) : "null").","; $sql .= " ".(!isset($this->origin_email) ? 'NULL' : "'".$this->db->escape($this->origin_email)."'").","; - $sql .= " ".($this->fk_user_create > 0 ? $this->fk_user_create : ($user->id > 0 ? $user->id : 'NULL')).","; + $sql .= " ".(!isset($this->fk_user_create) ? ($user->id > 0 ? $user->id : 'NULL') : ($this->fk_user_create > 0 ? $this->fk_user_create : 'NULL')).","; $sql .= " ".($this->fk_user_assign > 0 ? $this->fk_user_assign : 'NULL').","; $sql .= " ".(empty($this->email_msgid) ? 'NULL' : "'".$this->db->escape($this->email_msgid)."'").","; $sql .= " ".(empty($this->email_date) ? 'NULL' : "'".$this->db->idate($this->email_date)."'").",";