+
+ # If last_updated_by
+ if params[:last_updated_by] and !params[:last_updated_by][0].blank?
+ last_reported_by = params[:last_updated_by][0].to_s == "nil" ? nil : params[:last_updated_by][0].to_i
+ @issues = @issues.where(updated_by: last_updated_by)
+ end
+
+ if @issues.first == nil
+ notice = t('issues.index.search.issues_not_found')
+ end
+
+ if params[:last_reported_by] and !params[:last_reported_by][0].blank?
+ 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)
+ end
+
+ if notice
+ redirect_to issues_path, notice: notice
+ end