Update card.php

hide line with empty duration if FICHINTER_HIDE_EMPTY_DURATION is activate
This commit is contained in:
BENKE Charles 2015-01-12 10:16:34 +01:00
parent a77a604082
commit b6b84e235c

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);