X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/a068598933c93ca693bf9536e90d38f647fcf2d90ac2973cf0ac31f492fc0414..39de200073340ec2836ff74ab20fff0ace3a072d324732278e49eff498174582:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index a4b9837..4c4e2d0 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -2988,6 +2988,10 @@ sub search_projects_list { return @$projlist unless ($tagfilter || $searchtext); + # searching projects require filling to be run before it; + fill_project_list_info($projlist, + $tagfilter ? 'ctags' : (), + $searchtext ? ('path', 'descr') : ()); my @projects; PROJECT: foreach my $pr (@$projlist) { @@ -5388,12 +5392,13 @@ sub git_project_list_body { # filtering out forks before filling info allows to do less work @projects = filter_forks_from_projects_list(\@projects) if ($check_forks); - @projects = fill_project_list_info(\@projects); - # searching projects require filling to be run before it + # search_projects_list pre-fills required info @projects = search_projects_list(\@projects, 'searchtext' => $searchtext, 'tagfilter' => $tagfilter) if ($tagfilter || $searchtext); + # fill the rest + @projects = fill_project_list_info(\@projects); $order ||= $default_projects_order; $from = 0 unless defined $from;