In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Relationship Graph View Issue ] Dependency Graph ]
related to child of duplicate of

Viewing Issue Simple Details
ID Category Type Reproducibility Date Submitted Last Update
0000699 [In-Portal CMS] Front End bug report always 2010-04-16 17:11 2010-06-10 13:44
Reporter Dmitry View Status public  
Assigned To alex
Priority normal Resolution fixed  
Status closed      
Summary 0000699: Referring to In-Link in ItemCount method of CategoriesEventHandler class
Description 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);
 }
Additional Information



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker