mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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();
|
||||
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 {
|
||||
print '<font class="error">'.$langs->trans("NoTypeDefinedGoToSetup").'</font>';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ if ($resql)
|
|||
$statictype->libelle=$obj->libelle;
|
||||
print '<td>'.$staticmember->getNomUrl(1,24).'</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 '</tr>';
|
||||
$i++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user