Fix line "none" must not be visible if there is lines
This commit is contained in:
parent
7e40ee5e4b
commit
6a9056a924
@ -605,7 +605,6 @@ if ($object->id > 0)
|
||||
print '<td align="center">'.$langs->trans("DateProcess").'</td>';
|
||||
print '<td> </td>';
|
||||
print '</tr>';
|
||||
$var=true;
|
||||
|
||||
if ($result_sql)
|
||||
{
|
||||
@ -615,7 +614,6 @@ if ($object->id > 0)
|
||||
{
|
||||
$obj = $db->fetch_object($result_sql);
|
||||
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td align="left">'.dol_print_date($db->jdate($obj->date_demande),'day')."</td>\n";
|
||||
print '<td align="center"><a href="'.DOL_URL_ROOT.'/user/card.php?id='.$obj->user_id.'">'.img_object($langs->trans("ShowUser"),'user').' '.$obj->login.'</a></td>';
|
||||
@ -660,6 +658,7 @@ if ($object->id > 0)
|
||||
if ($result)
|
||||
{
|
||||
$num = $db->num_rows($result);
|
||||
$numclosed = $num;
|
||||
$i = 0;
|
||||
|
||||
while ($i < $num)
|
||||
@ -690,8 +689,10 @@ if ($object->id > 0)
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
if (! $num)
|
||||
|
||||
if (! $numclosed)
|
||||
print '<tr class="oddeven"><td colspan="7" class="opacitymedium">'.$langs->trans("None").'</td></tr>';
|
||||
|
||||
$db->free($result);
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user