Commit 536b8232 authored by http://jneen.net/'s avatar http://jneen.net/ Committed by Felipe Artur

bail if the issue was invalid for any reason

(including spam)
parent 97cba711
......@@ -46,11 +46,10 @@ module Gitlab
title: mail.subject,
description: message,
confidential: true,
service_desk_reply_to: from_address,
).execute
@issue.update_attributes(
service_desk_reply_to: from_address
)
raise InvalidIssueError unless @issue.persisted?
end
def send_thank_you_email!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment