No Code Attached Yet
avatar wedevlops
wedevlops
2 Feb 2022

Steps to reproduce the issue

  1. Enable CAPTCHA - reCAPTCHA (input site key and secret key) - everything is working normally
  2. BUT when you decide to disable the CAPTCHA - reCAPTCHA even if the plugin is disabled - you cannot save it unless you put any character on the site key and secret key

Expected result

You should be able to save it if the plugin is disabled (But in this case you need to put any character before you can save it)

Actual result

But in this case, you need to put any character before you can save it

System information (as much as possible)

Joomla 4.0.6

Additional comments

avatar wedevlops wedevlops - open - 2 Feb 2022
avatar joomla-cms-bot joomla-cms-bot - change - 2 Feb 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Feb 2022
avatar wedevlops
wedevlops - comment - 2 Feb 2022

adding recapcha

Attaching files

avatar brianteeman
brianteeman - comment - 2 Feb 2022

This is the expected behaviour. Why would you want to save a form with invalid data? Also please remember that any plugin can be enabled directly from the plugin manager.

avatar wedevlops
wedevlops - comment - 2 Feb 2022

when I move the demo site to the actual domain and decided not to use google Recaptcha then I encounter this. to close that window (screenshot) your need to input any character just to close it; even the plugin is disabled.

avatar brianteeman
brianteeman - comment - 2 Feb 2022

ah I think I see your use case. please confirm if my understanding is correct.

You have a site with captcha keys setup and then you want to disable captcha AND remove reference to those keys?

avatar wedevlops
wedevlops - comment - 2 Feb 2022

yes; right.. i tested in J3 it works fine.

avatar brianteeman
brianteeman - comment - 2 Feb 2022

I can not confirm that. The behaviour in j3 is identical

It can't really be fixed whilst it is a required field

avatar wedevlops
wedevlops - comment - 2 Feb 2022

okay... I am just sharing my experience for J4. thanks..

avatar brianteeman
brianteeman - comment - 2 Feb 2022

Thank you it is appreciated

avatar richard67
richard67 - comment - 2 Feb 2022

So the issue shall be closed as expected behavior?

avatar brianteeman
brianteeman - comment - 2 Feb 2022

Yes I would say so. The only other option would be to have a default value for the two fields set to something like 00000000000 but then that defeats the purpose of it being a required field

avatar richard67 richard67 - change - 2 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-02 11:11:12
Closed_By richard67
avatar richard67 richard67 - close - 2 Feb 2022
avatar richard67
richard67 - comment - 2 Feb 2022

Closing as expected behavior. Details see previous comments. Feel free to re-open if you don't agree.

Add a Comment

Login with GitHub to post a comment