Fix : we only want employee users for holidays

This commit is contained in:
Maxime Kohlhaas 2021-08-04 14:48:10 +02:00
parent d822421e10
commit 803722e323

View File

@ -1630,6 +1630,7 @@ class Holiday extends CommonObject
$sql .= " WHERE u.entity IN (".getEntity('user').")";
}
$sql .= " AND u.statut > 0";
$sql .= " AND u.employee = 1"; // We only want employee users for holidays
if ($filters) $sql .= $filters;
$resql = $this->db->query($sql);
@ -1720,6 +1721,7 @@ class Holiday extends CommonObject
}
$sql .= " AND u.statut > 0";
$sql .= " AND u.employee = 1"; // We only want employee users for holidays
if ($filters) $sql .= $filters;
$resql = $this->db->query($sql);