@@ -48,7 +48,7 @@ class ExceptionhandlerController < ApplicationController
|
|||||||
issue = check_for_existing_report
|
issue = check_for_existing_report
|
||||||
if issue != nil
|
if issue != nil
|
||||||
if update_report(issue)
|
if update_report(issue)
|
||||||
flash.now[:notice] = "Updated report"
|
flash.now[:notice] = "Updated report: ##{issue.id}"
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
@@ -57,7 +57,7 @@ class ExceptionhandlerController < ApplicationController
|
|||||||
issue = create_new_report
|
issue = create_new_report
|
||||||
if issue.valid?
|
if issue.valid?
|
||||||
issue.save
|
issue.save
|
||||||
flash.now[:notice] = "New report filed"
|
flash.now[:notice] = "New report filed: ##{issue.id}"
|
||||||
else
|
else
|
||||||
flash.now[:error] = issue.errors.full_messages
|
flash.now[:error] = issue.errors.full_messages
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user