Fix line "none" must not be visible if there is lines
This commit is contained in:
parent
6a9056a924
commit
5bdb7d1b98
@ -520,6 +520,7 @@ if ($object->id > 0)
|
||||
dol_fiche_end();
|
||||
|
||||
|
||||
$numopen = 0; $numclosed = 0;
|
||||
|
||||
/*
|
||||
* Withdrawal opened requests
|
||||
@ -540,6 +541,7 @@ if ($object->id > 0)
|
||||
if ($result_sql)
|
||||
{
|
||||
$num = $db->num_rows($result_sql);
|
||||
$numopen = $num;
|
||||
}
|
||||
|
||||
|
||||
@ -690,7 +692,7 @@ if ($object->id > 0)
|
||||
$i++;
|
||||
}
|
||||
|
||||
if (! $numclosed)
|
||||
if (! $numopen && ! $numclosed)
|
||||
print '<tr class="oddeven"><td colspan="7" class="opacitymedium">'.$langs->trans("None").'</td></tr>';
|
||||
|
||||
$db->free($result);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user