From f28ebefe9356a3a65b464f41d5c8c1d0f3466dff Mon Sep 17 00:00:00 2001 From: TBAI Date: Thu, 7 Jan 2016 19:53:59 +0100 Subject: [PATCH] Debug of module leave requests Cancel leave isn't possible if it has been validated --- htdocs/holiday/class/holiday.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/holiday/class/holiday.class.php b/htdocs/holiday/class/holiday.class.php index 21c36574ea9..1432e38e35f 100644 --- a/htdocs/holiday/class/holiday.class.php +++ b/htdocs/holiday/class/holiday.class.php @@ -819,12 +819,11 @@ class Holiday extends CommonObject * @param int $fk_type Filter on type * @return string retourne la valeur du paramètre */ - function getConfCP($name, $fk_type=0) + function getConfCP($name) { $sql = "SELECT value"; $sql.= " FROM ".MAIN_DB_PREFIX."holiday_config"; $sql.= " WHERE name = '".$name."'"; - if ($fk_type > 0) $sql.=" AND fk_type = ".$fk_type; dol_syslog(get_class($this).'::getConfCP name='.$name.'', LOG_DEBUG); $result = $this->db->query($sql);