No Code Attached Yet Information Required bug
avatar coolcat-creations
coolcat-creations
5 Aug 2020

Steps to reproduce the issue

I repeat this so you have a context: I am currently teaching a class of kids in working with Joomla. So here and there always the same mistakes happen where we can learn from. If a new user comes into such situations the frustration can be high. But we can help them not to make such mistakes.

So when you enable a captcha plugin and select it in the configuration and you find out that you don't want to use the captcha anymore and only disable the captcha plugin, the form does not work anymore.
Then if you go to the configuration, there is no chance to deselect the not existing captcha. So you have to go back to plugins, then to configuration, disable it in the configuration, then disable the plugin again.

Expected result

when captcha plugin is disabled it should not be shown in the form anymore.

Actual result

Quite bad UX for beginners and even for advanced when they disable in the wrong order.

System information (as much as possible)

J 3.9.20

Additional comments

avatar coolcat-creations coolcat-creations - open - 5 Aug 2020
avatar joomla-cms-bot joomla-cms-bot - change - 5 Aug 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Aug 2020
avatar brianteeman
brianteeman - comment - 5 Aug 2020

when captcha plugin is disabled it should not be shown in the form anymore.

Or when disabling the plugin you get a message saying it is in use?

avatar coolcat-creations
coolcat-creations - comment - 5 Aug 2020

when captcha plugin is disabled it should not be shown in the form anymore.

Or when disabling the plugin you get a message saying it is in use?

at least that... an error message that it can't be disabled because its in use. still it would be quite bothering to send the user "from there to there"

avatar SharkyKZ
SharkyKZ - comment - 5 Aug 2020

How can you tell if a plugin is "in use"?

Allowing form submission is the correct thing to do but it's already been proposed and declined (#22397). This issue can be closed as expected behavior.

avatar coolcat-creations
coolcat-creations - comment - 5 Aug 2020

The problem is that you even can unselect it in the config because it's disabled. So when you disable a plugin there should be a check if it's selected in the configuaration and warn then.

avatar brianteeman
brianteeman - comment - 5 Aug 2020

But where do you check to see if it is being used? There is global config, article edit, contact form, custom fields, extra components etc etc

avatar Quy Quy - change - 5 Sep 2020
Labels Added: Information Required
avatar Quy Quy - labeled - 5 Sep 2020
avatar brianteeman
brianteeman - comment - 26 Aug 2022

I just checked j4 contact forms

After enabling captcha globally and then disabling the plugin the form still displays as expected.
The form can still be submitted but you get the following message

image

I can confirm however one weird thing which I will look at the code for shortly.
After enabling captcha globally and then disabling the plugin the option is global config says None Selected (would be better as no captcha plugin enabled)
image

So this field is checking to see if there are any enabled plugins.

However the captcha option in individual components is still showing "use global" but not the individual plugins
image

So it is checking to see if there are any enabled plugins AND the global setting which despite displaying none is actually set

avatar Hackwar Hackwar - change - 20 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar Hackwar Hackwar - labeled - 20 Feb 2023

Add a Comment

Login with GitHub to post a comment