Fix bugs
This commit is contained in:
parent
660960f316
commit
3eeda5410c
|
@ -13,6 +13,7 @@ class Panel::Ask::BackEnd::AskRepliesController < OrbitBackendController
|
|||
def create
|
||||
@ask_question = AskQuestion.find(params[:ask_question_id])
|
||||
@ask_question.ask_reply = AskReply.new(params[:ask_reply])
|
||||
@ask_reply = @ask_question.ask_reply
|
||||
@ask_question.save
|
||||
if @ask_question.ask_reply.send_email?
|
||||
Resque.enqueue(SendAskReplyMail, @ask_reply.ask_question.id)
|
||||
|
|
Loading…
Reference in New Issue