GLOBAL_EVENTS
EVT_FLAG_REQUESTED EVT_REQUESTED_FLAG
+
+ FULLTEXT_BUGLIST_LIMIT
);
@Bugzilla::Constants::EXPORT_OK = qw(contenttypes);
use constant GLOBAL_EVENTS => EVT_FLAG_REQUESTED, EVT_REQUESTED_FLAG;
+# Number of bugs to return in a buglist when performing
+# a fulltext search.
+use constant FULLTEXT_BUGLIST_LIMIT => 200;
1;
}
}
elsif ($fulltext) {
- $query .= " " . $dbh->sql_limit(200);
+ $query .= " " . $dbh->sql_limit(FULLTEXT_BUGLIST_LIMIT);
$vars->{'sorted_by_relevance'} = 1;
}
[% ELSIF message_tag == "buglist_sorted_by_relevance" %]
[% terms.Bugs %] on this list are sorted by relevance, with the most
relevant [% terms.bugs %] at the top.
- [% IF bugs.size == 200 %]
- Only the 200 most relevant [% terms.bugs %] are shown.
+ [% IF bugs.size == constants.FULLTEXT_BUGLIST_LIMIT %]
+ Only the [% constants.FULLTEXT_BUGLIST_LIMIT FILTER html %]
+ most relevant [% terms.bugs %] are shown.
[% END %]
[% ELSIF message_tag == "change_columns" %]