diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php index e15f22220f1..a911797fd49 100644 --- a/htdocs/comm/propal/list.php +++ b/htdocs/comm/propal/list.php @@ -54,7 +54,7 @@ $search_refcustomer=GETPOST('search_refcustomer','alpha'); $search_societe=GETPOST('search_societe','alpha'); $search_montant_ht=GETPOST('search_montant_ht','alpha'); $search_author=GETPOST('search_author','alpha'); -$search_ville=GETPOST('search_ville','alpha'); +$search_town=GETPOST('search_town','alpha'); $sall=GETPOST("sall"); $mesg=(GETPOST("msg") ? GETPOST("msg") : GETPOST("mesg")); @@ -102,7 +102,7 @@ if (GETPOST("button_removefilter_x")) $search_societe=''; $search_montant_ht=''; $search_author=''; - $search_ville=''; + $search_town=''; $year=''; $month=''; } @@ -159,9 +159,9 @@ if (! $user->rights->societe->client->voir && ! $socid) //restriction { $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id; } -if ($search_ville) //restriction +if ($search_town) //restriction { - $sql.= " AND s.town LIKE '%".$db->escape(trim($search_ville))."%'"; + $sql.= " AND s.town LIKE '%".$db->escape(trim($search_town))."%'"; } if ($search_ref) { @@ -235,7 +235,7 @@ if ($result) if ($search_sale > 0) $param.='&search_sale='.$search_sale; if ($search_montant_ht) $param.='&search_montant_ht='.$search_montant_ht; if ($search_author) $param.='&search_author='.$search_author; - if ($search_ville) $param.='&search_ville='.$search_ville; + if ($search_town) $param.='&search_town='.$search_town; print_barre_liste($langs->trans('ListOfProposals').' '.($socid?'- '.$soc->nom:''), $page, $_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,'',$num); // Lignes des champs de filtre @@ -288,7 +288,7 @@ if ($result) print '