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 <eldy@destailleur.fr>
This commit is contained in:
Charlène Benke 2026-01-21 01:41:03 +01:00 committed by GitHub
parent 9a75f66e29
commit 47ae685061
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {