No Code Attached Yet
avatar Kostelano
Kostelano
1 Apr 2020

Steps to reproduce the issue

  1. Use the Joomla 3.9.16,
  2. Turn on the option Register users on your site,
  3. Go to Extensions -> Plugins -> User - Profile, select a value for Terms of Service -> Required, but DO NOT select the article with the conditions (below),
  4. Go to the front-end and try to register, but DO NOT check the Terms of Service checkbox.

Expected result

Error because I did NOT check the Terms of Service checkbox.

Actual result

I registered on the site without any problems, but did NOT check the Terms of Service item. Please note that the hint tells us the following:

Screenshot_1

System information (as much as possible)

Joomla 3.9.16
PHP 7.3.2

Additional comments

If you select an article with conditions in the plugin settings, then everything works correctly - the field is required and registration is not possible.

You need to either remove part of the tooltip from the language constant:

PLG_USER_PROFILE_FIELD_TOS_DESC_SITE="Please read the Terms of Service. You will not be able to register if you do not agree with them."

Or, check for an article with conditions and, possibly, do not display the field even if the value is selected, which is mandatory.

In short, the logic is strange and needs some refinement :) Thanks.

avatar Kostelano Kostelano - open - 1 Apr 2020
avatar joomla-cms-bot joomla-cms-bot - change - 1 Apr 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Apr 2020
avatar Kostelano Kostelano - change - 1 Apr 2020
Title
Strange logic of the Terms of Service clause
[3.9] Strange logic of the Terms of Service clause
avatar Kostelano Kostelano - edited - 1 Apr 2020
avatar infograf768
infograf768 - comment - 2 Apr 2020

Confirmed.
Looks like we should make the selection or creation of the Tos article mandatory when Tos is required. Also, the field should display only when Tos is required with a showon.

avatar jwaisner jwaisner - change - 4 Apr 2020
Status New Confirmed
avatar brianteeman
brianteeman - comment - 28 Aug 2022

Thank you for raising this issue.

Joomla 3 is now in security only mode with no further bug fixes or new features.

As this issue still exists in Joomla 4 I have created a pull request for testing #38619
cc @zero-24

avatar Kostelano Kostelano - change - 28 Aug 2022
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2022-08-28 08:46:04
Closed_By Kostelano
Labels Added: No Code Attached Yet
Removed: ?
avatar Kostelano Kostelano - close - 28 Aug 2022

Add a Comment

Login with GitHub to post a comment