From: Shrey Date: Sat, 13 Jun 2015 19:29:43 +0000 (+0530) Subject: Small changes X-Git-Tag: live~2953^2~144 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/dc173881e517943e707ab6fb701eee0a524c0c55 Small changes --- diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 24ac932d6..576b3309f 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -57,8 +57,12 @@ class IssuesController < ApplicationController end def create + + # TODO: Find better place to add these admin_issues = [ 'DiaryEntry', 'DiaryComment', 'User'] moderator_issues = [] + + @issue = Issue.find_by_reportable_id_and_reportable_type(params[:reportable_id],params[:reportable_type]) # Check if Issue alrwady exists if !@issue