From c4497cecd4de1594e1f2da7f97dda010a338bd05 Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Thu, 8 Feb 2018 10:48:18 +0000 Subject: [PATCH] REGRESSION User profile plugin Enable the User - Joomla plugin and set the first field to be required Enable user registration Try to register a user on the front end and you will see that field Address 1 is displayed as optional - it should be displayed as required. Try to register without completing field Address 1 and it will fail saying that Address 1 is required This has been a long standing recurring bug. This instance has come from Fix form data lost when user registration failed #19145 Reverting that PR resolves this issue but then of course it means that the issue being fixed in #19145 had returned --- components/com_users/views/registration/view.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/com_users/views/registration/view.html.php b/components/com_users/views/registration/view.html.php index 42c4ac7325c40..186bd1c4171ac 100644 --- a/components/com_users/views/registration/view.html.php +++ b/components/com_users/views/registration/view.html.php @@ -38,8 +38,8 @@ class UsersViewRegistration extends JViewLegacy public function display($tpl = null) { // Get the view data. - $this->form = $this->get('Form'); $this->data = $this->get('Data'); + $this->form = $this->get('Form'); $this->state = $this->get('State'); $this->params = $this->state->get('params');