Skip to content
Snippets Groups Projects
Commit 9f8bee35 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #2331 from altatof/fix_natural_search

FIX: select DISTINCT for natural search on proposal list (in the same way it's done in invoices list)
parents 3ec5b468 3940abe7
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,9 @@ if (! $sortorder) $sortorder='DESC';
$limit = $conf->liste_limit;
$sql = 'SELECT s.rowid, s.nom, s.town, s.client, s.code_client,';
if (! $sall) $sql = 'SELECT';
else $sql = 'SELECT DISTINCT';
$sql.= ' s.rowid, s.nom, s.town, s.client, s.code_client,';
$sql.= ' p.rowid as propalid, p.note_private, p.total_ht, p.ref, p.ref_client, p.fk_statut, p.fk_user_author, p.datep as dp, p.fin_validite as dfv,';
if (! $user->rights->societe->client->voir && ! $socid) $sql .= " sc.fk_soc, sc.fk_user,";
$sql.= ' u.login';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment