|
@@ -88,8 +88,8 @@ if ($user->socid) {
|
|
|
$result = restrictedArea($user, 'contact', $id, 'socpeople&societe', '', '', 'rowid', 0); // If we create a contact with no company (shared contacts), no check on write permission
|
|
|
|
|
|
$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
|
|
|
-$sortfield = GETPOST("sortfield", 'alpha');
|
|
|
-$sortorder = GETPOST("sortorder", 'alpha');
|
|
|
+$sortfield = GETPOST('sortfield', 'aZ09comma');
|
|
|
+$sortorder = GETPOST('sortorder', 'aZ09comma');
|
|
|
$page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("page", 'int');
|
|
|
if (empty($page) || $page == -1) {
|
|
|
$page = 0;
|