if (!isset($_REQUEST['_no_count'])) {
$total = $xx->count($this->countWhat);
}
+ if (isset($xx->_real_total)) { // this is used when we subquery the search.
+ $total = $xx->_real_total;
+ }
// sorting..
//
// var_dump($total);exit;
// filter results, and add any data that is needed...
if (method_exists($x,'postListFilter')) {
- $ret = $x->postListFilter($ret, $this->authUser, $_REQUEST);
+ $ret = $x->postListFilter($ret, $this->authUser, $_REQUEST, $this);
}
}
if ( $with_perm_check && !$this->checkPerm($x,'A', $req)) {
- $this->jerr("PERMISSION DENIED (i)");
+ $this->jerr("PERMISSION DENIED {$x->tableName()}:checkPerm(A)");
}
$cols = $x->tableColumns();