paging_max_rows set to 20 but only 2 rows visible while searching for projects or users
some details here: http://www.zentrack.net/forums?func=view&catid=3&id=6404
ZenTrack 2.6.4.
Apache 2.2.10 (Unix)
PHP 5.2.6
MySQL 5.0.67-community
x86_64
Linux CentOS 2.6.9-78.0.5.ELsmp
Debug Output
db_connect: "Connected successfully to database"
loadSection: "Loading section: globals"
headerInc::getZtSection(): "0"
loadSection: "Loading section: searchbox"
get_access()Query: "SELECT * FROM ZENTRACK_ACCESS WHERE user_id = 8 AND lvl is not null"
ZenTrack::getUser: "User 8 retrieved from cache"
getValsForTicketField(): "dataTypeId=priority, =, 7 bins, 5 results"
getValsForTicketField(): "dataTypeId=bin_id, =, 7 bins, 7 results"
getValsForTicketField(): "dataTypeId=system_id, =, 7 bins, 8 results"
ZenTrack::getUser: "Retrieved user 0 from db []: SELECT * FROM ZENTRACK_USERS WHERE user_id = 0"
getValsForTicketField(): "dataTypeId=type_id, =, 7 bins, 7 results"
getValsForTicketField(): "dataTypeId=priority, =, 7 bins, 5 results"
getValsForTicketField(): "dataTypeId=bin_id, =, 7 bins, 7 results"
getValsForTicketField(): "dataTypeId=system_id, =, 7 bins, 8 results"
ZenTrack::getUser: "Retrieved user 9 from db [Array]: SELECT * FROM ZENTRACK_USERS WHERE user_id = 9"
getValsForTicketField(): "dataTypeId=type_id, =, 7 bins, 7 results"
I have a fix, includes/ZenSearchBox.php, line 52:
$this->_queryLimit = 2;//isset($_POST['queryLimit'])? $_POST['queryLimit'] : 10;
Looks like using "paging_max_rows" option is not implemented here. I changed this row to:
$this->_queryLimit = 20;
It works.
I also can see a lot of debug output calls from the search stuff, but I cant see it printed... maybe my ZenTrack setup is broken or a bug in debug code