Skip to content

Commit

Permalink
Merge pull request #7768 from fjordllc/feature/corporate_training_for…
Browse files Browse the repository at this point in the history
…m_create

企業研修申し込みフォームで送信できない問題を修正
  • Loading branch information
komagata authored May 10, 2024
2 parents cb43df0 + 05c421c commit e545cd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/corporate_training_inquiries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def new
def create
@corporate_training_inquiry = CorporateTrainingInquiry.new(corporate_training_inquiry_params)

result = valid_recaptcha?('corporate_training_inquiry')
result = valid_recaptcha?('inquiry')
if result && @corporate_training_inquiry.save
CorporateTrainingInquiryMailer.incoming(@corporate_training_inquiry).deliver_later
redirect_to new_corporate_training_inquiry_url, notice: 'お問い合わせを送信しました。'
Expand Down
2 changes: 1 addition & 1 deletion app/views/corporate_training_inquiries/_form.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@
li.form-actions__item.is-main
= f.submit '送信', class: 'a-button is-lg is-primary is-block'

= recaptcha_v3(action: 'corporate_training_inquiry', callback: 'skipOnLoadReCaptcha') if recaptcha_enabled?
= recaptcha_v3(action: 'inquiry', callback: 'skipOnLoadReCaptcha') if recaptcha_enabled?

0 comments on commit e545cd6

Please sign in to comment.