commit
503f07a7ca
@ -2909,6 +2909,7 @@ class Ticket extends CommonObject
|
|||||||
global $conf, $user, $langs;
|
global $conf, $user, $langs;
|
||||||
|
|
||||||
$now = dol_now();
|
$now = dol_now();
|
||||||
|
$delay_warning = 0;
|
||||||
|
|
||||||
$this->nbtodo = $this->nbtodolate = 0;
|
$this->nbtodo = $this->nbtodolate = 0;
|
||||||
$clause = " WHERE";
|
$clause = " WHERE";
|
||||||
@ -2951,8 +2952,8 @@ class Ticket extends CommonObject
|
|||||||
while ($obj = $this->db->fetch_object($resql)) {
|
while ($obj = $this->db->fetch_object($resql)) {
|
||||||
$response->nbtodo++;
|
$response->nbtodo++;
|
||||||
if ($mode == 'opened') {
|
if ($mode == 'opened') {
|
||||||
$datelimit = $this->db->jdate($obj->datefin);
|
$datelimit = $this->db->jdate($obj->datec) + $delay_warning;
|
||||||
if ($datelimit < ($now - $delay_warning)) {
|
if ($datelimit < $now) {
|
||||||
//$response->nbtodolate++;
|
//$response->nbtodolate++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user