issue_filter.criteria.created_after=Created since
issue_filter.criteria.created_before=Created before
issue_filter.criteria.date_format=year-month-day (2013-01-31)
+issue_filter.max_results_reached=Number of results are higher than {0}. Sort won't be available.
#------------------------------------------------------------------------------
IssueDto issueDto = (IssueDto) context.getResultObject();
if (authorizedRootProjectIds.contains(issueDto.getProjectId())) {
issues.add(issueDto);
+ } else {
+ // reject because user not authorized
}
if (issues.size() >= maxResults) {
context.stop();
findUsers(users),
paging,
false,
- authorizedIssues.size() != query.maxResults()
+ authorizedIssues.size() >= query.maxResults()
// TODO
// authorizedIssues.size() != allIssues.size()
);
@filter.criteria=criteria_params
@filter.execute
- @selected_project = @filter.issues_result.projects.first if !@filter.issues.isEmpty() && @filter.criteria('componentRoots')
+ @selected_project = @filter.issues_result.projects.first if @filter.issues && @filter.criteria('componentRoots')
end
def column_html(filter, column_label, column_tooltip, sort)
filter_sort = filter.criteria[:sort]
filter_asc = filter.criteria[:asc] == 'true' ? true : false
- html = link_to_function(h(column_label), "refreshList('#{escape_javascript sort}',#{!filter_asc}, #{filter.criteria[:page]||1})", :title => h(column_tooltip))
- if sort == filter_sort
- html << (filter_asc ? image_tag("asc12.png") : image_tag("desc12.png"))
+ if !filter.issues_result.maxResultsReached()
+ html = link_to_function(h(column_label), "refreshList('#{escape_javascript sort}',#{!filter_asc}, #{filter.criteria[:page]||1})", :title => h(column_tooltip))
+ if sort == filter_sort
+ html << (filter_asc ? image_tag("asc12.png") : image_tag("desc12.png"))
+ end
+ else
+ html = h(column_label)
end
html
end
<%
if @filter.issues && !@filter.issues.empty?
- colspan = 8
+ colspan = 9
%>
<div>
<table class="data width100">
<div class="page-split-right">
<div id="content">
<div class="marginbottom10">
- <% if @filter.issues_result && @filter.issues_result.securityExclusions() %>
- <p class="notes"><%= message('results_not_display_due_to_security') -%></p>
+ <% if @filter.issues_result %>
+ <% if @filter.issues_result.securityExclusions() %>
+ <p class="notes"><%= message('results_not_display_due_to_security') -%></p>
+ <% end %>
+ <% if @filter.issues_result.maxResultsReached() %>
+ <p class="notes"><%= message('issue_filter.max_results_reached', :params => @filter.paging.total()) -%></p>
+ <% end %>
<% end %>
-
<%= render :partial => 'list' -%>
</div>
</div>