Fix: Pb creation adherent dans ldap

This commit is contained in:
Laurent Destailleur 2007-08-28 17:52:14 +00:00
parent cecbc19e06
commit 0518210119

View File

@ -56,7 +56,7 @@ if ($user->societe_id > 0)
llxHeader(); llxHeader();
$form = new Form($db); $html = new Form($db);
$adh = new Adherent($db); $adh = new Adherent($db);
@ -86,11 +86,6 @@ $head = member_prepare_head($adh);
dolibarr_fiche_head($head, 'ldap', $langs->trans("Member")); dolibarr_fiche_head($head, 'ldap', $langs->trans("Member"));
$result=$adh->load_previous_next_id($adh->next_prev_filter);
if ($result < 0) dolibarr_print_error($db,$adh->error);
$previous_id = $adh->id_previous?'<a href="'.$_SERVER["PHP_SELF"].'?id='.urlencode($adh->id_previous).'">'.img_previous().'</a>':'';
$next_id = $adh->id_next?'<a href="'.$_SERVER["PHP_SELF"].'?id='.urlencode($adh->id_next).'">'.img_next().'</a>':'';
/* /*
* Fiche en mode visu * Fiche en mode visu
@ -100,9 +95,7 @@ print '<table class="border" width="100%">';
// Ref // Ref
print '<tr><td width="20%">'.$langs->trans("Ref").'</td>'; print '<tr><td width="20%">'.$langs->trans("Ref").'</td>';
print '<td class="valeur">'; print '<td class="valeur">';
if ($previous_id || $next_id) print '<table class="nobordernopadding" width="100%"><tr class="nobordernopadding"><td class="nobordernopadding">'; print $html->showrefnav($adh,'id');
print $adh->id;
if ($previous_id || $next_id) print '</td><td class="nobordernopadding" align="center" width="20">'.$previous_id.'</td><td class="nobordernopadding" align="center" width="20">'.$next_id.'</td></tr></table>';
print '</td></tr>'; print '</td></tr>';
// Nom // Nom