In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
699 [In-Portal CMS] Front End bug report always 2010-04-16 17:11 2010-06-10 13:44
Dmitry  
alex  
normal  
closed 5.0.3-B2  
fixed  
 
none 5.0.4-B1  
http://groups.google.com/group/in-portal-bugs/browse_thread/thread/ba845b223c85e25
0
0000699: Referring to In-Link in ItemCount method of CategoriesEventHandler class
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);
 }
patch itemcount_reffering_to_in-link.patch (610) 2010-04-16 17:11
http://tracker.in-portal.org/file_download.php?file_id=468&type=bug
Issue History
2010-06-10 13:44 alex Note Added: 0002434
2010-06-10 13:44 alex Status resolved => closed
2010-05-11 03:29 alex Note Added: 0002178
2010-05-11 03:29 alex Status reviewed and tested => resolved
2010-05-11 03:29 alex Fixed in Version => 5.0.4-B1
2010-05-11 03:29 alex Resolution open => fixed
2010-05-11 03:29 alex Assigned To !COMMUNITY => alex
2010-05-11 03:29 alex Changeset attached 5.0.x r13524
2010-05-05 11:37 alex Note Added: 0002067
2010-05-05 11:37 alex Status needs testing => reviewed and tested
2010-04-16 17:11 Dmitry Assigned To => !COMMUNITY
2010-04-16 17:11 Dmitry Developer => Dmitry
2010-04-16 17:11 Dmitry Status active => needs testing
2010-04-16 17:11 Dmitry New Issue
2010-04-16 17:11 Dmitry File Added: itemcount_reffering_to_in-link.patch
2010-04-16 17:11 Dmitry Reference => http://groups.google.com/group/in-portal-bugs/browse_thread/thread/ba845b223c85e25

Notes
(0002067)
alex   
2010-05-05 11:37   
ok
(0002178)
alex   
2010-05-11 03:29   
Fix committed to 5.0.x branch. Commit Message:

1. Fixes 0000699: Referring to In-Link in ItemCount method of CategoriesEventHandler class
2. Commit on behalf of Dmitry
(0002434)
alex   
2010-06-10 13:44   
Closing since version 5.0.4 is released.