nooku is a Public Portfolio from Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

Create your own Portfolio or check out other free and subscription products from Assembla that will help accelerate your development projects.

nooku-server

Commit 3558

User picture
  • Author: gergoerdosi
  • 2012-04-04 01:34 (about 2 years ago)

Uncomment count check. re #204

Files Affected

 
35573558
57
        $state = $this->getState();
57
        $state = $this->getState();
58
 
58
 
59
        //Exclude joins if counting records
59
        //Exclude joins if counting records
60
        //if(!$query->count)
60
        if(!$query->count)
61
        //{
61
        {
62
            if ($state->section) {
62
            if ($state->section) {
63
                if ($state->section == 'com_content' || is_numeric($state->section)){
63
                if ($state->section == 'com_content' || is_numeric($state->section)){
64
                    $query->join(array('content' => 'content'), 'content.catid = tbl.id');
64
                    $query->join(array('content' => 'content'), 'content.catid = tbl.id');
...
 
...
 
67
                    $query->join(array('child' => substr($state->section, 4)), 'child.catid = tbl.id');
67
                    $query->join(array('child' => substr($state->section, 4)), 'child.catid = tbl.id');
68
                }
68
                }
69
            }
69
            }
70
        //}
70
        }
71
 
71
 
72
        parent::_buildQueryJoins($query);
72
        parent::_buildQueryJoins($query);
73
    }
73
    }
35573558
38
    protected function _buildQueryJoins(KDatabaseQuerySelect $query)
38
    protected function _buildQueryJoins(KDatabaseQuerySelect $query)
39
    {
39
    {
40
        // Exclude joins if counting records.
40
        // Exclude joins if counting records.
41
        //if(!$query->count) {
41
        if(!$query->count) {
42
            $query->join(array('categories' => 'categories'), 'categories.id = tbl.catid');
42
            $query->join(array('categories' => 'categories'), 'categories.id = tbl.catid');
43
        //}
43
        }
44
    }
44
    }
45
 
45
 
46
    protected function _buildQueryWhere(KDatabaseQuerySelect $query)
46
    protected function _buildQueryWhere(KDatabaseQuerySelect $query)