Merge pull request #17439 from atm-lena/11.0_FIX_ShowContactSearch_SQLError

FIX SQL Error show_contacts : socialnetworks
This commit is contained in:
Laurent Destailleur 2021-04-30 12:03:40 +02:00 committed by GitHub
commit 27e2c69e4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -902,11 +902,11 @@ function show_contacts($conf, $langs, $db, $object, $backtopage = '')
't.email',
);
//Social media
foreach ($socialnetworks as $key => $value) {
if ($value['active']) {
$searchAddressPhoneDBFields['t.'.$key] = "t.socialnetworks->'$.".$key."'";
}
}
// foreach ($socialnetworks as $key => $value) {
// if ($value['active']) {
// $searchAddressPhoneDBFields['t.'.$key] = "t.socialnetworks->'$.".$key."'";
// }
// }
if (!$sortorder) $sortorder = "ASC";
if (!$sortfield) $sortfield = "t.lastname";