? ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
15 Oct 2021

Pull Request for Issue #35814.

Summary of Changes

Currently, the label for a Captcha field is always displayed, even if the used plugin is invisible recaptcha. This simple fixes that wrong behavior.

To be honest, I'm unsure if this is a proper fix. Another option is fix this line of code https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Form/FormField.php#L1052 to something like:

$options['hiddenLabel'] = in_array(strtolower($this->getAttribute('hiddenLabel')), ['true', 'yes', '1'], true);

But I don't see we document anywhere what's the possible value of hiddenLabel attribute, so I decided to go with safe option.

Testing Instructions

  1. Use Joomla 4
  2. Configure the site to use invisiable recaptcha plugin
  3. Access to user registration form or contact form

Actual result BEFORE applying this Pull Request

The label for captcha field is displayed

Expected result AFTER applying this Pull Request

The label for captcha field is not being displayed

Documentation Changes Required

No

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar joomdonation joomdonation - open - 15 Oct 2021
avatar joomdonation joomdonation - change - 15 Oct 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Oct 2021
Category Front End Plugins
avatar Quiviro
Quiviro - comment - 15 Oct 2021

I have tested this item successfully on 1b3b0fd

The label "Captcha *" is not being displayed after applying the patch


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35834.

avatar Quiviro Quiviro - test_item - 15 Oct 2021 - Tested successfully
avatar richard67
richard67 - comment - 24 Oct 2021

I have tested this item successfully on 1b3b0fd


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35834.

avatar richard67 richard67 - test_item - 24 Oct 2021 - Tested successfully
avatar richard67 richard67 - change - 24 Oct 2021
Status Pending Ready to Commit
Labels Added: ?
avatar richard67
richard67 - comment - 24 Oct 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35834.

avatar bembelimen bembelimen - change - 3 Nov 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-11-03 08:58:45
Closed_By bembelimen
Labels Added: ?
avatar bembelimen bembelimen - close - 3 Nov 2021
avatar bembelimen bembelimen - merge - 3 Nov 2021
avatar bembelimen
bembelimen - comment - 3 Nov 2021

Thx

Add a Comment

Login with GitHub to post a comment