?
avatar Spudley
Spudley
6 Jul 2017

Please refer to #13254

This pull request was made in response to a bug in J 3.6.5 whereby user profile fields would be displayed as optional on the registration form despite being set to disabled.

The fix involved changing $this->getForm(array(), false) to $this->getForm(array()).

This fix has been reverted in J 3.7.3 and the same bug is now happening again.

The reverted code also includes a comment "Don't load the data in this getForm call, or we'll call ourself", so clearly there is a reason for it to be written that way, but it is breaking the user profile plugin.

avatar Spudley Spudley - open - 6 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - change - 6 Jul 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Jul 2017
avatar Spudley
Spudley - comment - 6 Jul 2017

Additional: I was also about to post a second ticket, stating that the J 3.7.3 update had also broken another third party user plugin, the Multi Usergroup Registration plugin. However, it turns out that this is also caused by same change. I made the same fix as before; ie removing the false parameter; and the issues in both plugins were resolved.

avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Jul 2017
Category com_users
avatar Spudley Spudley - change - 6 Jul 2017
Title
J 3.7.3: Reoccurence of profile form bug previously fixed in 3.7.0
Joomla 3.7.3: Reoccurence of profile form bug previously fixed in 3.7.0
avatar Spudley Spudley - edited - 6 Jul 2017
avatar infograf768
infograf768 - comment - 7 Jul 2017

@bembelimen
Please look what you can do as it seems your PR is at stake
#15724

avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Jul 2017
Status New Information Required
avatar funbugpiz
funbugpiz - comment - 7 Jul 2017

I have this (old) problem:

Terms of Service article is not linked to TOS label
Your text to link here...


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Jul 2017

@funbugpiz looks like this Issue you reported isn't related to this issue so can you please open an new Issue?

avatar funbugpiz
funbugpiz - comment - 8 Jul 2017

Sorry, I think there is a realation. But I can be wrong.

If I changes in components/com_users/models/registration.php line 247:
$form = $this->getForm(array(), false); to
$form = $this->getForm(array()); See above, then I fix the problem with the TOS link.

Also look at: false param on fetching form data


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Jul 2017

@infograf768 can you please have a look about Relation?

avatar infograf768
infograf768 - comment - 9 Jul 2017

Results of my tests.

First :

User profile fields would be displayed as optional on the registration form despite being set to disabled.

I can't confirm that one when new registration in frontend :
Plugin params:
screen shot 2017-07-09 at 08 00 41

Registration form:
screen shot 2017-07-09 at 08 01 28

Address 1 and Address 2, which are disabled, do not display in the registration form, which is correct.
But Country, which is required, is set as Optional, which is incorrect

While creating a new User in back-end, that user profile form in back-end just does not take into account at all of Optional/Required params, behavior similar to Registration (screenshot below).

screen shot 2017-07-09 at 08 15 42

Editing a profile in frontend

Plugin params:
screen shot 2017-07-09 at 08 11 08

Frontend and back-end profile edit:
screen shot 2017-07-09 at 08 12 09

Disabled and Required fields are set OK.

Second:

Terms of Service article is not linked to TOS label

I confirm the error.
(NOTE: For a multingual site, the TOS article has to be tagged to the correct Content Language, and its category too. Associations are to be used with other TOS articles tagged to the other Content Languages, themselves in categories tagged to the same Content Language)

Indeed reverting
$form = $this->getForm(array(), false);
to
$form = $this->getForm(array());

Solves both issues.

avatar infograf768 infograf768 - change - 9 Jul 2017
Title
Joomla 3.7.3: Reoccurence of profile form bug previously fixed in 3.7.0
REGRESSION - Joomla 3.7.3: Reoccurence of profile form bug previously fixed in 3.7.0
avatar infograf768 infograf768 - edited - 9 Jul 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Jul 2017
Status Information Required Discussion
avatar infograf768
infograf768 - comment - 10 Jul 2017

PR reverting #15274
Closing.

avatar infograf768 infograf768 - change - 10 Jul 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-07-10 06:04:36
Closed_By infograf768
avatar infograf768 infograf768 - close - 10 Jul 2017
avatar funbugpiz
funbugpiz - comment - 10 Jul 2017

Hi infograf768,

I'm relative new here.
_
Second: Terms of Service article is not linked to TOS label_

What is the following step(s) to solve this problem?

Gr.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17001.
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 10 Jul 2017

@funbugpiz please have a Look at PR #17043

Add a Comment

Login with GitHub to post a comment