diff --git a/htdocs/contact/index.php b/htdocs/contact/index.php
index 1cf07a95185..736cdbe022f 100644
--- a/htdocs/contact/index.php
+++ b/htdocs/contact/index.php
@@ -151,6 +151,11 @@ if ($result)
print '
';
+ if ($contactname)
+ {
+ print $langs->trans("Filter")." (".$langs->trans("Lastname")." ".$langs->trans("or")." ".$langs->trans("Firstname")."): $contactname";
+ }
+
// Ligne des titres
print '';
print_liste_field_titre($langs->trans("Lastname"),"index.php","p.name", $begin, "&view=$view&search_nom=$search_nom&search_prenom=$search_prenom&search_societe=$search_societe&search_email=$search_email", "", $sortfield);
diff --git a/htdocs/societe.php b/htdocs/societe.php
index 58456d24164..edf0fe4d62e 100644
--- a/htdocs/societe.php
+++ b/htdocs/societe.php
@@ -140,8 +140,8 @@ if ($search_ville) {
if ($socname)
{
- $title_filtre .= "'$socname'";
$sql .= " AND s.nom like '%".$socname."%'";
+ $search_nom=$socname;
}
$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit+1, $offset);
@@ -156,6 +156,7 @@ if ($result)
print_barre_liste($title, $page, "societe.php",$params,$sortfield,$sortorder,'',$num);
+ // Lignes des titres
print '';
print '';
print_liste_field_titre($langs->trans("Company"),"societe.php","s.nom", $params,"&search_nom=$search_nom&search_ville=$search_ville","",$sortfield);
@@ -163,6 +164,7 @@ if ($result)
print '| | ';
print "
\n";
+ // Lignes des champs de filtre
print '