Merge pull request #12965 from frederic34/patch-6

Update extrafields.class.php
This commit is contained in:
Laurent Destailleur 2020-01-29 22:57:01 +01:00 committed by GitHub
commit e13f1509b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1466,7 +1466,7 @@ class ExtraFields
}
// We have to join on extrafield table
if (strpos($InfoFieldList[4], 'extra') !== false) {
if (strpos($InfoFieldList[4], 'extra.') !== false) {
$sql .= ' as main, '.MAIN_DB_PREFIX.$InfoFieldList[0].'_extrafields as extra';
$sqlwhere .= ' WHERE extra.fk_object=main.'.$InfoFieldList[2].' AND '.$InfoFieldList[4];
} else {