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 ...@@ -46,11 +46,10 @@ module Gitlab
title: mail.subject, title: mail.subject,
description: message, description: message,
confidential: true, confidential: true,
service_desk_reply_to: from_address,
).execute ).execute
@issue.update_attributes( raise InvalidIssueError unless @issue.persisted?
service_desk_reply_to: from_address
)
end end
def send_thank_you_email! 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