Fixed error
authorShrey <shrey14099@iiitd.ac.in>
Sat, 1 Aug 2015 06:25:42 +0000 (11:55 +0530)
committerMatt Amos <zerebubuth@gmail.com>
Mon, 22 Aug 2016 15:18:15 +0000 (16:18 +0100)
(cherry picked from commit 99f8a765b8303115c8633fdc9e3c4edc77cbc32d)

Conflicts:
app/controllers/issues_controller.rb

app/controllers/issues_controller.rb

index a499dad9de9ab5311abe6df92b57ebdf91b5c824..9b9dd7d3aad2e0b0c4df16c3fd0d73d6d923b66c 100644 (file)
@@ -40,6 +40,12 @@ class IssuesController < ApplicationController
       @issues = @issues.where(reportable_type: params[:issue_type][0])
     end
 
+    # 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