2
0
forked from Wavyzz/dolibarr

Fix : search contact by phone was mistaking phone pro and phone perso

This commit is contained in:
Maxime Kohlhaas
2014-08-06 08:54:22 +02:00
parent 269a59e11a
commit 3499c69b7d

View File

@@ -172,11 +172,11 @@ if (strlen($search_phone))
} }
if (strlen($search_phoneper)) if (strlen($search_phoneper))
{ {
$sql .= " AND p.phone LIKE '%".$db->escape($search_phoneper)."%'"; $sql .= " AND p.phone_perso LIKE '%".$db->escape($search_phoneper)."%'";
} }
if (strlen($search_phonepro)) if (strlen($search_phonepro))
{ {
$sql .= " AND p.phone_perso LIKE '%".$db->escape($search_phonepro)."%'"; $sql .= " AND p.phone LIKE '%".$db->escape($search_phonepro)."%'";
} }
if (strlen($search_phonemob)) if (strlen($search_phonemob))
{ {