Insert captcha widget even if placement is NULL

Created on 18 February 2025, 4 months ago

Problem/Motivation

Marking as task since I can't decide if this is a bug report or a feature request.

My use case is that we have forms that get built by a form alter of a different module, in my case that's ECA. And because the form alter of ECA gets called later than the form alter of captcha, the form doesn't have any submit buttons yet and therefore captcha doesn't insert the widget.

However, the method $captchaService->insertCaptchaElement is written in a way that the second argument for the placement can be NULL and the insertion still works.

Proposed resolution

Call the insert function even if placement is NULL.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024