BigW Consortium Gitlab

Commit f5c2ad7f by Sean McGivern Committed by Tiago

Merge branch 'sh-fix-spam-update-404' into 'master'

Fix 404 error after a user edits an issue description and solves the reCAPTCHA Closes #41445 See merge request gitlab-org/gitlab-ce!16167 (cherry picked from commit ac35636f) b8f5a7d5 Fix 404 error after a user edits an issue description and solves the reCAPTCHA
parent e0d6049d
- resource_name = spammable.class.model_name.singular
- humanized_resource_name = spammable.class.model_name.human.downcase
- script = local_assigns.fetch(:script, true)
- method = params[:action] == 'create' ? :post : :put
- has_submit = local_assigns.fetch(:has_submit, true)
= form_for resource_name, method: :post, html: { class: 'recaptcha-form js-recaptcha-form' } do |f|
= form_for resource_name, method: method, html: { class: 'recaptcha-form js-recaptcha-form' } do |f|
.recaptcha
- params[resource_name].each do |field, value|
= hidden_field(resource_name, field, value: value)
......
---
title: Fix 404 errors after a user edits an issue description and solves the reCAPTCHA
merge_request:
author:
type: fixed
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