Code comment
This commit is contained in:
parent
520ce4c3ac
commit
b8b5b97d78
@ -714,12 +714,12 @@ class Holiday extends CommonObject
|
|||||||
// Update status
|
// Update status
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."holiday SET";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."holiday SET";
|
||||||
if (!empty($this->statut) && is_numeric($this->statut)) {
|
if (!empty($this->statut) && is_numeric($this->statut)) {
|
||||||
$sql .= " statut = ".$this->statut.",";
|
$sql .= " statut = ".((int) $this->statut).",";
|
||||||
} else {
|
} else {
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
$sql .= " ref = '".$this->db->escape($num)."'";
|
$sql .= " ref = '".$this->db->escape($num)."'";
|
||||||
$sql .= " WHERE rowid= ".$this->id;
|
$sql .= " WHERE rowid= ".((int) $this->id);
|
||||||
|
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
@ -1937,7 +1937,7 @@ class Holiday extends CommonObject
|
|||||||
*
|
*
|
||||||
* @param int $fk_user_action Id user creation
|
* @param int $fk_user_action Id user creation
|
||||||
* @param int $fk_user_update Id user update
|
* @param int $fk_user_update Id user update
|
||||||
* @param string $label Label
|
* @param string $label Label (Example: 'Leave', 'Manual update', 'Leave request cancelation'...)
|
||||||
* @param int $new_solde New value
|
* @param int $new_solde New value
|
||||||
* @param int $fk_type Type of vacation
|
* @param int $fk_type Type of vacation
|
||||||
* @return int Id of record added, 0 if nothing done, < 0 if KO
|
* @return int Id of record added, 0 if nothing done, < 0 if KO
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user