Index: trunk/core/kernel/db/db_tag_processor.php =================================================================== diff -u -r2378 -r2381 --- trunk/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 2378) +++ trunk/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 2381) @@ -1144,8 +1144,7 @@ */ function CustomField($params) { - $prefix = $this->Prefix; - $object =& $this->Application->recallObject( $prefix ); + $object =& $this->Application->recallObject( $this->getPrefixSpecial(), $this->Prefix, $params ); $field = $this->SelectParam($params, 'name,field'); @@ -1154,7 +1153,7 @@ $sql = ' SELECT cv.l'.$lang_id.'_Value FROM '.TABLE_PREFIX.'CustomField cf LEFT JOIN '.TABLE_PREFIX.'CustomMetaData cv ON cf.CustomFieldId = cv.CustomFieldId - WHERE cf.Type = '.$this->Application->getUnitOption($prefix, 'ItemType').' + WHERE cf.Type = '.$this->Application->getUnitOption($this->Prefix, 'ItemType').' AND cv.ResourceId = '.$object->GetDBField('ResourceId').' AND cf.FieldName = "'.$field.'"'; return $this->Conn->GetOne($sql);