From 47ae68506166db89e306e94f03e44a1e9c4cceec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Wed, 21 Jan 2026 01:41:03 +0100 Subject: [PATCH] NEW Update holiday class to handle date_create field (#36918) * Update holiday class to handle date_create field Add conditional logic to include date_create in SQL update. * Update holiday.class.php --------- Co-authored-by: Laurent Destailleur --- htdocs/holiday/class/holiday.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/holiday/class/holiday.class.php b/htdocs/holiday/class/holiday.class.php index 0f514140918..ab7d7396893 100644 --- a/htdocs/holiday/class/holiday.class.php +++ b/htdocs/holiday/class/holiday.class.php @@ -1038,6 +1038,11 @@ class Holiday extends CommonObject $sql .= " description= '".$this->db->escape($this->description)."',"; + if (!empty($this->date_create)) { + $sql .= " date_create = '".$this->db->idate($this->date_create)."',"; + } else { + $error++; + } if (!empty($this->date_debut)) { $sql .= " date_debut = '".$this->db->idate($this->date_debut)."',"; } else {