From 780b8a6fb21b1b83ccf4aab39c85cceabf545386 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 Nov 2020 12:40:21 +0100 Subject: [PATCH] Fix navigation between members --- htdocs/adherents/document.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/document.php b/htdocs/adherents/document.php index f9c14b91ac3..969bf3a8906 100644 --- a/htdocs/adherents/document.php +++ b/htdocs/adherents/document.php @@ -37,7 +37,8 @@ require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php'; $langs->loadLangs(array("companies", "members", "other")); -$id = GETPOST('id', 'int'); +$id = GETPOSTISSET('id') ? GETPOST('id', 'int') : GETPOST('rowid', 'int'); +$ref = GETPOST('ref', 'alphanohtml'); $action = GETPOST('action', 'aZ09'); $confirm = GETPOST('confirm', 'alpha'); @@ -60,7 +61,7 @@ if (!$sortfield) $sortfield = "name"; $form = new Form($db); $object = new Adherent($db); $membert = new AdherentType($db); -$result = $object->fetch($id); +$result = $object->fetch($id, $ref); if ($result < 0) { dol_print_error($db); exit;