From 82af0ed28f223d1324c8843abb106c8ee6af9a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Fri, 25 May 2012 16:35:46 +0200 Subject: [PATCH 1/2] Fixed a bug preventing invoice sorting by authors --- htdocs/compta/facture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 72e1cef02d0..fd80993b5db 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -3262,7 +3262,7 @@ else if ($userid) { if ($userid == -1) $sql.=' AND f.fk_user_author IS NULL'; - else $sql.=' AND f.fk_user_author = '.$user->id; + else $sql.=' AND f.fk_user_author = '.$userid; } if ($_GET['filtre']) { From 20d90831e1f4f3677b1fb54db7c9624a8741dac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Fri, 1 Jun 2012 10:52:39 +0200 Subject: [PATCH 2/2] Fixed a bug in interventions' list navigation The navigation arrows were referencing "index.php" file thus preventing navigation between pages. The actual name of the file is "list.php". --- htdocs/fichinter/list.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php index 20a9d7681d3..a0e2597f0d7 100755 --- a/htdocs/fichinter/list.php +++ b/htdocs/fichinter/list.php @@ -39,14 +39,14 @@ $fichinterid = GETPOST('id','int'); if ($user->societe_id) $socid=$user->societe_id; $result = restrictedArea($user, 'ficheinter', $fichinterid,'fichinter'); -$sortfield = GETPOST('sortfield','alpha'); -$sortorder = GETPOST('sortorder','alpha'); -$page = GETPOST('page','int'); -if ($page == -1) { - $page = 0; -} -$offset = $conf->liste_limit * $page; -$pageprev = $page - 1; +$sortfield = GETPOST('sortfield','alpha'); +$sortorder = GETPOST('sortorder','alpha'); +$page = GETPOST('page','int'); +if ($page == -1) { + $page = 0; +} +$offset = $conf->liste_limit * $page; +$pageprev = $page - 1; $pagenext = $page + 1; if (! $sortorder) $sortorder="DESC"; @@ -96,7 +96,7 @@ if ($result) $interventionstatic=new Fichinter($db); $urlparam="&socid=$socid"; - print_barre_liste($langs->trans("ListOfInterventions"), $page, "index.php",$urlparam,$sortfield,$sortorder,'',$num); + print_barre_liste($langs->trans("ListOfInterventions"), $page, "list.php",$urlparam,$sortfield,$sortorder,'',$num); print '
'."\n"; print '';