Continue extrafeild $ID$ and select feature

This commit is contained in:
Florian HENRY 2015-11-20 13:52:47 +01:00
parent b8cab9f4d9
commit 101b45e397

View File

@ -993,6 +993,11 @@ class ExtraFields
$sql .= ' FROM ' . MAIN_DB_PREFIX . $InfoFieldList[0];
if (! empty($InfoFieldList[4])) {
// can use SELECT request
if (strpos($InfoFieldList[4], '$SEL$')!==false) {
$InfoFieldList[4]=str_replace('$SEL$','SELECT',$InfoFieldList[4]);
}
// current object id can be use into filter
if (strpos($InfoFieldList[4], '$ID$')!==false && !empty($objectid)) {
$InfoFieldList[4]=str_replace('$ID$',$objectid,$InfoFieldList[4]);