Update extrafields.class.php

This commit is contained in:
Frédéric FRANCE 2020-01-29 15:35:46 +01:00 committed by GitHub
parent d255e3b77b
commit dcc8b4b65e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1465,7 +1465,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 {