From 6fb587cc229e09850fcbb4f92a6ad19eba52c6aa Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 28 Oct 2011 23:27:40 +0200 Subject: [PATCH 1/2] Fix: Order by title --- htdocs/lib/project.lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/lib/project.lib.php b/htdocs/lib/project.lib.php index d3eef74bbe6..61b02a8fc0f 100644 --- a/htdocs/lib/project.lib.php +++ b/htdocs/lib/project.lib.php @@ -651,7 +651,8 @@ function print_projecttasks_array($db, $socid, $projectsListId, $mytasks=0) $sql.= " AND ec.fk_socpeople = ".$user->id; } $sql.= " GROUP BY p.rowid, p.ref, p.title, p.fk_user_creat, p.public, p.fk_statut"; - + $sql.= " ORDER BY p.title, p.ref"; + $var=true; $resql = $db->query($sql); if ( $resql ) From 9e6aaf702190eba721f9aca05465c60c77d553ce Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 29 Oct 2011 00:00:35 +0200 Subject: [PATCH 2/2] Fix: Filter on third party --- htdocs/compta/bank/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index fa65b87d64b..6e5907ff13f 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -48,7 +48,7 @@ if ($user->societe_id) $socid=$user->societe_id; $result=restrictedArea($user,'banque',$id,'bank_account','','',$fieldid); $req_nb=GETPOST("req_nb",'',3); -$thirdarty=GETPOST("thirdparty",'',3); +$thirdparty=GETPOST("thirdparty",'',3); $account=GETPOST("account"); $vline=GETPOST("vline"); $action=GETPOST("action"); @@ -211,7 +211,7 @@ if ($account || $_GET["ref"]) } if ($thirdparty) { - $sql_rech.=" AND s.nom LIKE '%".$db->escape($thirdparty)."%')"; + $sql_rech.=" AND s.nom LIKE '%".$db->escape($thirdparty)."%'"; $param.='&thirdparty='.urlencode($thirdparty); $mode_search = 1; }