Previously it would go into a redirect loop if there were no issues
in the database.
@issues = @issues.where(:updated_by => last_updated_by)
end
- notice = t("issues.index.search.issues_not_found") if @issues.first.nil?
-
if params[:last_reported_by] && params[:last_reported_by][0].present?
last_reported_by = params[:last_reported_by][0].to_s == "nil" ? nil : params[:last_reported_by][0].to_i
@issues = @issues.where(:updated_by => last_reported_by)
-<p id= "notice"><%= notice %></p>
-
<% content_for :heading do %>
<h1>List of <%= @user_role %> issues:</h1>
<% end %>
<%= submit_tag "Search" %>
<% end %>
<br/>
+
+<% if @issues.length == 0 %>
+ <p><%= t ".search.issues_not_found" %></p>
+<% end %>
+
<br/>
<table>