Update card.php

don't show line with empty duration when FICHINTER_HIDE_EMPTY_DURATION is active
This commit is contained in:
BENKE Charles 2014-12-28 13:20:51 +01:00
parent 36f5715e47
commit da0d0838e2

View File

@ -1373,6 +1373,8 @@ else if ($id > 0 || ! empty($ref))
$sql.= ' ft.date as date_intervention';
$sql.= ' FROM '.MAIN_DB_PREFIX.'fichinterdet as ft';
$sql.= ' WHERE ft.fk_fichinter = '.$object->id;
if (!empty($conf->global->FICHINTER_HIDE_EMPTY_DURATION))
$sql.= ' AND ft.duree <> 0';
$sql.= ' ORDER BY ft.rang ASC, ft.rowid';
$resql = $db->query($sql);