作业留言问题修复
This commit is contained in:
parent
ae5ced6a51
commit
cb03669085
|
@ -70,7 +70,12 @@ class Mailer < ActionMailer::Base
|
||||||
end
|
end
|
||||||
mail :to => @recipients,
|
mail :to => @recipients,
|
||||||
:subject => "#{l(:label_your_course)}#{journals_for_message.jour.name}#{l(:label_have_message)} "
|
:subject => "#{l(:label_your_course)}#{journals_for_message.jour.name}#{l(:label_have_message)} "
|
||||||
else
|
elsif journals_for_message.jour.class.to_s.to_sym == :Bid
|
||||||
|
if !journals_for_message.jour.author.notify_about? journals_for_message
|
||||||
|
return -1
|
||||||
|
end
|
||||||
|
mail :to => journals_for_message.jour.author.mail, :subject => @title
|
||||||
|
else
|
||||||
mail :to => @mail.mail, :subject => @title
|
mail :to => @mail.mail, :subject => @title
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue