|
@@ -89,8 +89,11 @@ if ($user->societe_id > 0)
|
|
|
//accessforbidden();
|
|
|
}
|
|
|
|
|
|
+// Initialize technical object to manage context to save list fields
|
|
|
+$contextpage=GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'mymodulelist';
|
|
|
+
|
|
|
// Initialize technical object to manage hooks. Note that conf->hooks_modules contains array
|
|
|
-$hookmanager->initHooks(array('skeletonlist'));
|
|
|
+$hookmanager->initHooks(array('mymodulelist'));
|
|
|
$extrafields = new ExtraFields($db);
|
|
|
|
|
|
// fetch optionals attributes and labels
|
|
@@ -305,6 +308,7 @@ print '<input type="hidden" name="formfilteraction" id="formfilteraction" value=
|
|
|
print '<input type="hidden" name="action" value="list">';
|
|
|
print '<input type="hidden" name="sortfield" value="'.$sortfield.'">';
|
|
|
print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
|
|
|
+print '<input type="hidden" name="contextpage" value="'.$contextpage.'">';
|
|
|
|
|
|
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_companies', 0, '', '', $limit);
|
|
|
|