Skip to content

Commit

Permalink
call project_cache_array_rows as appropriate to cache project informa…
Browse files Browse the repository at this point in the history
…tion for view_all_bug page
  • Loading branch information
mantis committed May 2, 2009
1 parent 3bdff58 commit aed7ea2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion view_all_bug_page.php
Expand Up @@ -46,13 +46,16 @@

$t_bugslist = Array();
$t_users_handlers = Array();
$t_project_ids = Array();
$t_row_count = count( $rows );
for($i=0; $i < $t_row_count; $i++) {
array_push($t_bugslist, $rows[$i]["id"] );
$t_users_handlers[] = $rows[$i]["handler_id"];
$t_project_ids[] = $rows[$i]["project_id"];
}
user_cache_array_rows( array_unique( $t_users_handlers ) );

project_cache_array_rows( array_unique( $t_project_ids ) );

gpc_set_cookie( config_get( 'bug_list_cookie' ), implode( ',', $t_bugslist ) );

compress_enable();
Expand Down

0 comments on commit aed7ea2

Please sign in to comment.