? ? ? Pending

User tests: Successful: Unsuccessful:

avatar Giuse69
Giuse69
14 Oct 2019

This PR adds an option to login module to set a menu item for registration page. Useful to override default registration link "index.php?option=com_users&view=registration" to a custom page by its menu item.

Summary of Changes

New option in login module.

Testing Instructions

Apply the PR.

  1. Go to front end: nothing should be changed in registration link in login module.
  2. Edit login module and set a menu item to X: go to front-end and registration link should point to the desired menu item X.

Documentation Changes Required

It's a self-explanatory option, anyway the doc page https://docs.joomla.org/Customising_the_Login_Form_module
may cite the new option.

avatar Giuse69 Giuse69 - open - 14 Oct 2019
avatar Giuse69 Giuse69 - change - 14 Oct 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Oct 2019
Category Language & Strings Modules Front End
avatar SharkyKZ
SharkyKZ - comment - 14 Oct 2019

Could you move the code to a helper method so it doesn't clutter the layout? Thanks. See example with return URL

public static function getReturnUrl($params, $type)
.

avatar SharkyKZ SharkyKZ - change - 14 Oct 2019
Title
Add registration menu to login module
[4.0] Add registration menu to login module
avatar joomla-cms-bot joomla-cms-bot - edited - 14 Oct 2019
avatar SharkyKZ SharkyKZ - change - 14 Oct 2019
Labels Added: ? ?
avatar infograf768
infograf768 - comment - 14 Oct 2019

Notice: Undefined variable: params in /Applications/MAMP/htdocs/installmulti/joomla40/modules/mod_login/Helper/LoginHelper.php on line 74 Error: Call to a member function get() on null: Call to a member function get() on null

Once $params is added for the method, it also has to be added in login.php

avatar Giuse69
Giuse69 - comment - 19 Oct 2019

is it now ok to be merged?

avatar richard67
richard67 - comment - 19 Oct 2019

@Giuse69 No, but it is ok now to be tested. It needs 2 successful tests by someone who is not the author. Testers mark their test result in the issue tracker. After successful test by 2 testers, a maintainer (I am no maintainer by the way) sets the "RTC" flag, which means "ready to commit", and then it will be merged after a while (can be a few days sometimes, maintainers are also volunteers only, like we are, and they have a regular job beside Joomla in most cases).

Your PR looks good to me now and I will try to find some time later today for a test.

You are lucky: Today is PBF (Pizza Bugs and Fun) event, so it might be easier than usual to find testers. Normally it often can take some time.

avatar Giuse69
Giuse69 - comment - 19 Oct 2019

Thanks Richard

avatar manojLondhe manojLondhe - test_item - 19 Oct 2019 - Tested successfully
avatar manojLondhe
manojLondhe - comment - 19 Oct 2019

I have tested this item successfully on 65873c0


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

avatar adiheutschi adiheutschi - test_item - 19 Oct 2019 - Tested unsuccessfully
avatar blueforce blueforce - test_item - 19 Oct 2019 - Tested successfully
avatar blueforce
blueforce - comment - 19 Oct 2019

I have tested this item successfully on dd80d52

works as aspected


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

avatar neotrendch neotrendch - test_item - 19 Oct 2019 - Tested successfully
avatar neotrendch
neotrendch - comment - 19 Oct 2019

I have tested this item successfully on dd80d52

work as expected

tested on:
PHP Version 7.3.8
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 4.0.0-beta1-dev Development [ Amani ] 17-October-2019 20:21 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36


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

avatar richard67
richard67 - comment - 19 Oct 2019

@Giuse69 Could you check and comment @adiheutschi 's negative test result? Did he/she test in a wrong way? Or is it a valid test and you have to correct something?

avatar MarLinDT
MarLinDT - comment - 19 Oct 2019

I have tested this item successfully on dd80d52


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

avatar richard67
richard67 - comment - 19 Oct 2019

Guys, 2 successful tests are enough for a Pull Request to get the "Ready to Commit" (RTC) status. As soon as a PR has this, it does not need more tests, and you can focus on other PR's which still need tests.

Here it is more important that we have 1 bad test, and as long as this is not clarified or solved, it can't get RTC.

avatar adiheutschi
adiheutschi - comment - 19 Oct 2019

Actually, it is not a mistake, the question is whether to link to a menu or Article ... ("Registration Page")???


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

avatar pascalelocher pascalelocher - test_item - 19 Oct 2019 - Tested successfully
avatar pascalelocher
pascalelocher - comment - 19 Oct 2019

I have tested this item successfully on e7a8ef4

PHP Version 7.3.8
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 4.0.0-beta1-dev Development [ Amani ] 17-October-2019 20:21 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0


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

avatar Giuse69
Giuse69 - comment - 19 Oct 2019

@adiheutschi The link is to a MENU as for login/logout redirection options that are above and not to an article that less probably can be a registration form (just to explain why a menu item and not an article)

avatar MarLinDT MarLinDT - test_item - 19 Oct 2019 - Tested successfully
avatar MarLinDT
MarLinDT - comment - 19 Oct 2019

I have tested this item successfully on e7a8ef4

Its all fine


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

avatar richard67
richard67 - comment - 19 Oct 2019

The link is to a MENU as for login/logout redirection options that are above and not to an article that less probably can be a registration form (just to explain why a menu item and not an article)

@adiheutschi Is that ok for you? If so, please change your test result in the issue tracker.

avatar alikon alikon - change - 19 Oct 2019
Status Pending Ready to Commit
avatar alikon
alikon - comment - 19 Oct 2019

RTC #jd19it #pbf19


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

avatar adiheutschi adiheutschi - test_item - 19 Oct 2019 - Tested successfully
avatar adiheutschi
adiheutschi - comment - 19 Oct 2019

I have tested this item successfully on e7a8ef4

Test is successfully

Setting Value
PHP Built On Linux server2.adiheutschi.ch 3.10.0-962.3.2.lve1.5.24.9.el7.x86_64 #1 SMP Wed Feb 13 08:24:50 EST 2019 x86_64
Database Type mysql
Database Version 10.2.27-MariaDB
Database Collation latin1_swedish_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.3.10
Web Server LiteSpeed
WebServer to PHP Interface litespeed
Joomla! Version Joomla! 4.0.0-beta1-dev Development [ Amani ] 17-October-2019 20:21 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36


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

avatar Giuse69 Giuse69 - change - 19 Oct 2019
Labels Added: ?
avatar richard67
richard67 - comment - 19 Oct 2019

@adiheutschi No need for more tests, this PR is already RTC.
@Giuse69 No need to update to 4.0-dev as long as no conflicts shown. Just out of date shown is ok.

avatar joomla-cms-bot joomla-cms-bot - change - 19 Oct 2019
Category Language & Strings Modules Front End Administration Templates (admin) Language & Strings Modules Front End Templates (site)
avatar joomla-cms-bot joomla-cms-bot - change - 19 Oct 2019
Category Language & Strings Modules Front End Administration Templates (admin) Templates (site) Language & Strings Modules Front End
avatar richard67
richard67 - comment - 19 Oct 2019

@Giuse69 Don't try to solve PHPCS erros in drone. Currently they fail on all 4.0-dev, it will be fixed soon. Is not related to your PR. But could you explain recent changes? They invalidate previous good tests if these changes are not code style only.

avatar Giuse69
Giuse69 - comment - 19 Oct 2019

ok, sorry.... and thanks for information

avatar richard67
richard67 - comment - 19 Oct 2019

To the maintainers: RTC is still ok, recent commits were only merged from 4.0-dev, in one case erroneously reverted but this then fixed later so all is ok now. I've just checked.

avatar Giuse69
Giuse69 - comment - 23 Oct 2019

hi, just to understand: after successful tests on PBF 2019 and RTC, it's just a matter of time to have it committed by @wilsonge, correct? thanks

avatar HLeithner
HLeithner - comment - 23 Oct 2019

@Giuse69 no not automatically. the PR has to fit in to Joomla! In your case I think it's a good addition and I merge it.

Thanks for your work and thanks to the tester.

avatar wilsonge wilsonge - change - 25 Oct 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-10-25 22:02:10
Closed_By wilsonge
avatar wilsonge wilsonge - close - 25 Oct 2019
avatar wilsonge wilsonge - merge - 25 Oct 2019
avatar wilsonge
wilsonge - comment - 25 Oct 2019

I think @HLeithner forgot to hit merge ? but what he said - sorry I'm really busy with Brexit related deadlines at work at the moment - so my time for Joomla is low

avatar HLeithner
HLeithner - comment - 26 Oct 2019

Lol seams I misses it, thx george

Add a Comment

Login with GitHub to post a comment