From dc173881e517943e707ab6fb701eee0a524c0c55 Mon Sep 17 00:00:00 2001 From: Shrey Date: Sun, 14 Jun 2015 00:59:43 +0530 Subject: [PATCH] Small changes --- app/controllers/issues_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.43.2