As you can see below we are referring to In-Link prefix below which is
unacceptable. I came across this issue when there was NO In-Link
installed.
function ItemCount($params)
{
$object =& $this->getObject($params);
$ci_table = $this->Application->getUnitOption('l-ci', 'TableName');
$sql = 'SELECT COUNT(*)
FROM ' . $object->TableName . ' c
LEFT JOIN ' . $ci_table . ' ci ON c.CategoryId = ci.CategoryId
WHERE (c.TreeLeft BETWEEN ' . $object->GetDBField('TreeLeft') . '
AND ' . $object->GetDBField('TreeRight') . ') AND NOT (ci.CategoryId
IS NULL)';
return $this->Conn->GetOne($sql);
}
We should hard code
$ci_table = TABLE_PREFIX . 'CategoryItems';
or find some other elegant solution.
Who else has something to add here?
DA.
--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to
in-port...@googlegroups.com.
To unsubscribe from this group, send email to
in-portal-bug...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/in-portal-bugs?hl=en.