Fix bad test
This commit is contained in:
parent
e28fce6318
commit
b2d9ade2d3
@ -628,10 +628,11 @@ if ($mode == 'show_day') {
|
|||||||
if ($type) {
|
if ($type) {
|
||||||
$sql .= " AND ca.id = ".((int) $type);
|
$sql .= " AND ca.id = ".((int) $type);
|
||||||
}
|
}
|
||||||
|
var_dump($status);
|
||||||
if ($status == '0') {
|
if ($status == '0') {
|
||||||
$sql .= " AND a.percent = 0";
|
$sql .= " AND a.percent = 0";
|
||||||
}
|
}
|
||||||
if ($status == '-1' || $status == 'na') {
|
if ($status === 'na') {
|
||||||
// Not applicable
|
// Not applicable
|
||||||
$sql .= " AND a.percent = -1";
|
$sql .= " AND a.percent = -1";
|
||||||
}
|
}
|
||||||
@ -658,7 +659,7 @@ if ($filtert > 0 || $usergroup > 0) {
|
|||||||
}
|
}
|
||||||
// Sort on date
|
// Sort on date
|
||||||
$sql .= ' ORDER BY fk_user_action, datep'; //fk_user_action
|
$sql .= ' ORDER BY fk_user_action, datep'; //fk_user_action
|
||||||
|
print $sql;
|
||||||
|
|
||||||
dol_syslog("comm/action/peruser.php", LOG_DEBUG);
|
dol_syslog("comm/action/peruser.php", LOG_DEBUG);
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user