Fix: Use bad date.
Fix: Autoselect of type.
This commit is contained in:
parent
bda132b07f
commit
3ab014e5c0
@ -730,7 +730,7 @@ if ($action == 'create')
|
|||||||
$listetype=$adht->liste_array();
|
$listetype=$adht->liste_array();
|
||||||
if (count($listetype))
|
if (count($listetype))
|
||||||
{
|
{
|
||||||
print $form->selectarray("typeid", $listetype, GETPOST('typeid','int')?GETPOST('typeid','int'):$typeid, 1);
|
print $form->selectarray("typeid", $listetype, GETPOST('typeid','int')?GETPOST('typeid','int'):$typeid, count($listetype)>1?1:0);
|
||||||
} else {
|
} else {
|
||||||
print '<font class="error">'.$langs->trans("NoTypeDefinedGoToSetup").'</font>';
|
print '<font class="error">'.$langs->trans("NoTypeDefinedGoToSetup").'</font>';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -247,7 +247,7 @@ if ($resql)
|
|||||||
$statictype->libelle=$obj->libelle;
|
$statictype->libelle=$obj->libelle;
|
||||||
print '<td>'.$staticmember->getNomUrl(1,24).'</td>';
|
print '<td>'.$staticmember->getNomUrl(1,24).'</td>';
|
||||||
print '<td>'.$statictype->getNomUrl(1,16).'</td>';
|
print '<td>'.$statictype->getNomUrl(1,16).'</td>';
|
||||||
print '<td>'.dol_print_date($db->jdate($obj->date_end),'dayhour').'</td>';
|
print '<td>'.dol_print_date($db->jdate($obj->datem),'dayhour').'</td>';
|
||||||
print '<td align="right">'.$staticmember->LibStatut($obj->statut,($obj->cotisation=='yes'?1:0),$db->jdate($obj->date_end_subscription),5).'</td>';
|
print '<td align="right">'.$staticmember->LibStatut($obj->statut,($obj->cotisation=='yes'?1:0),$db->jdate($obj->date_end_subscription),5).'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user