Skip to content
Snippets Groups Projects
Commit f28ebefe authored by TBAI's avatar TBAI
Browse files

Debug of module leave requests

Cancel leave isn't possible if it has been validated
parent b2aa1f21
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment