Merge branch '3.1' of git://github.com/Dolibarr/dolibarr.git into 3.1

This commit is contained in:
Juanjo Menent 2011-11-16 17:13:35 +01:00
commit 5d85ea89ed
2 changed files with 4 additions and 3 deletions

View File

@ -48,7 +48,7 @@ if ($user->societe_id) $socid=$user->societe_id;
$result=restrictedArea($user,'banque',$id,'bank_account','','',$fieldid); $result=restrictedArea($user,'banque',$id,'bank_account','','',$fieldid);
$req_nb=GETPOST("req_nb",'',3); $req_nb=GETPOST("req_nb",'',3);
$thirdarty=GETPOST("thirdparty",'',3); $thirdparty=GETPOST("thirdparty",'',3);
$account=GETPOST("account"); $account=GETPOST("account");
$vline=GETPOST("vline"); $vline=GETPOST("vline");
$action=GETPOST("action"); $action=GETPOST("action");
@ -211,7 +211,7 @@ if ($account || $_GET["ref"])
} }
if ($thirdparty) if ($thirdparty)
{ {
$sql_rech.=" AND s.nom LIKE '%".$db->escape($thirdparty)."%')"; $sql_rech.=" AND s.nom LIKE '%".$db->escape($thirdparty)."%'";
$param.='&thirdparty='.urlencode($thirdparty); $param.='&thirdparty='.urlencode($thirdparty);
$mode_search = 1; $mode_search = 1;
} }

View File

@ -651,6 +651,7 @@ function print_projecttasks_array($db, $socid, $projectsListId, $mytasks=0)
$sql.= " AND ec.fk_socpeople = ".$user->id; $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.= " 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; $var=true;
$resql = $db->query($sql); $resql = $db->query($sql);