From 513192f083500784954d0a8965c8edc09921aac4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 8 Jan 2005 21:41:17 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Le=20lien=20de=20tri=20=E9tait=20invalid?= =?UTF-8?q?e.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/contrat/liste.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/htdocs/contrat/liste.php b/htdocs/contrat/liste.php index 1cc44c08fae..411ff9382bb 100644 --- a/htdocs/contrat/liste.php +++ b/htdocs/contrat/liste.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004-2005 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,8 +21,7 @@ * */ -/*! - \file htdocs/contrat/contrat.class.php +/** \file htdocs/contrat/contrat.class.php \ingroup contrat \brief Page liste des contrats \version $Revision$ @@ -61,7 +60,7 @@ $offset = $limit * $page ; if ($sortfield == "") { - $sortfield="c.tms"; + $sortfield="c.rowid"; } if ($sortorder == "") @@ -86,13 +85,13 @@ if ( $db->query($sql) ) $i = 0; - print_barre_liste("Liste des contrats", $page, "index.php", "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num); + print_barre_liste("Liste des contrats", $page, $_SERVER["PHP_SELF"], "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num); print ''; print ''; - print_liste_field_titre($langs->trans("Ref"),"index.php", "c.rowid","","","",$sortfield); - print_liste_field_titre($langs->trans("Company"),"index.php", "s.nom","","","",$sortfield); + print_liste_field_titre($langs->trans("Ref"), $_SERVER["PHP_SELF"], "c.rowid","","","",$sortfield); + print_liste_field_titre($langs->trans("Company"), $_SERVER["PHP_SELF"], "s.nom","","","",$sortfield); print "\n"; $now=mktime();