Debug of module leave requests
Cancel leave isn't possible if it has been validated
This commit is contained in:
parent
b2aa1f2115
commit
f28ebefe93
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user