diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index d35be89415d..b7ad7137750 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -809,10 +809,6 @@ if ($rowid && $action != 'edit') if ($msg) print '
'.$msg.'
'; - $result=$adh->load_previous_next_id($adh->next_prev_filter); - if ($result < 0) dolibarr_print_error($db,$adh->error); - $previous_id = $adh->id_previous?''.img_previous().'':''; - $next_id = $adh->id_next?''.img_next().'':''; // Confirmation de la suppression de l'adhérent if ($action == 'delete') @@ -886,9 +882,7 @@ if ($rowid && $action != 'edit') // Ref print ''.$langs->trans("Ref").''; print ''; - if ($previous_id || $next_id) print '
'; - print $adh->id; - if ($previous_id || $next_id) print ''.$previous_id.''.$next_id.'
'; + print $html->showrefnav($adh); print ''; // Nom diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index e00e8821014..6a4014ef317 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -3337,7 +3337,7 @@ class Form $next_ref = $object->ref_next?''.img_next().'':''; if ($previous_ref || $next_ref) $ret.=''; $ret.='
'; - $ret.=$object->getNomUrl(1); + $ret.=$object->getNomUrl(0); if ($previous_ref || $next_ref) { $ret.=''.$previous_ref.''.$next_ref.'
';