Extrafield : better filter on select from table management for

extrafields table
This commit is contained in:
Florian Henry 2013-11-05 11:26:13 +01:00
parent d000e9b6d0
commit 0d2a019c3f

View File

@ -703,7 +703,7 @@ class ExtraFields
$keyList.= ', '.$parentField;
}
if (count($InfoFieldList)>=4 && !empty($InfoFieldList[4])) {
if (strpos($InfoFieldList[4], 'extra')!==false) {
if (strpos($InfoFieldList[4], 'extra.')!==false) {
$keyList='main.'.$InfoFieldList[2].' as rowid';
}else {
$keyList=$InfoFieldList[2].' as rowid';