? ? Failure

User tests: Successful: Unsuccessful:

avatar alexandraciobica
alexandraciobica
27 Jul 2018

Summary of Changes

Added checks for the layout in the com_users router because at the moment the router returns the first menu item that has the view that we are searching for, not taking into consideration the layout.

Testing Instructions

  1. Create a menu item for "User profile", another one for "Edit user profile"
  2. From "User profile" click "Edit Profile" button, which is redirecting to the edit profile view, having the correct url. (The url was /alias-of-menu-item/profile?layout=edit, now it is only /alias-of-menu-item)
  3. From "edit user profile" click cancel button. Before these changes it redirected to the same page, now it goes to the "user profile" page.
avatar alexandraciobica alexandraciobica - open - 27 Jul 2018
avatar alexandraciobica alexandraciobica - change - 27 Jul 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Jul 2018
Category Front End com_users
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 31 Jul 2018 - Tested unsuccessfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 Jul 2018

I have tested this item 🔴 unsuccessfully on 4d0e9f6

Patch installed got at click "Edit Profile" button:
The requested URL /<br /><b>Notice</b>: Undefined index: layout in <b>/url-of-host/components/com_users/helpers/legacyrouter.php</b> on line <b>127</b><br />/index.php/en/user-profile was not found on this server.

At Menu User-Profile: Notice: Undefined variable: profileEdit in/url-of-host/components/com_users/helpers/legacyrouter.php on line 222

System information

  • 3.8.11-dev
  • Template: Protostar
  • macOS Sierra, 10.13.6
  • Firefox 61 (64-bit)

CloudAccess.net

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 Jul 2018

I have tested this item 🔴 unsuccessfully on 4d0e9f6

Patch installed got at click "Edit Profile" button:
The requested URL /<br /><b>Notice</b>: Undefined index: layout in <b>/url-of-host/components/com_users/helpers/legacyrouter.php</b> on line <b>127</b><br />/index.php/en/user-profile was not found on this server.


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

avatar laoneo
laoneo - comment - 6 Aug 2018

@Hackwar can you please review this pr. Thanks.

avatar BertaOctech
BertaOctech - comment - 16 Nov 2018

I have tested this item 🔴 unsuccessfully on 4d0e9f6

Before installing the patch,
at user profile url was:
index.php/user-profile/profile
we clicked edit profile, and on cancel we went back to
index.php/your-profile/profile

When I applied the test, I received the following warnings:
At http://localhost/demo_patches/index.php/edit-user-profile
Notice: Undefined index: layout in components/com_users/helpers/legacyrouter.php on line 131

At http://localhost/demo_patches/index.php/user-profile
Notice: Undefined index: layout in components/com_users/helpers/legacyrouter.php on line


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

avatar BertaOctech BertaOctech - test_item - 16 Nov 2018 - Tested unsuccessfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Apr 2019
Title
Fixed users router 3.x
Fixed users router
avatar franz-wohlkoenig franz-wohlkoenig - edited - 19 Apr 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 Apr 2019

@alexandraciobica whats the State of this Pull Request?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 May 2019

I suggest to close this PR due the lack of response by @alexandraciobica. In the meantime i add the label "needs new owner".

avatar infograf768
infograf768 - comment - 12 May 2019

Closing. Can be reopened if judged necessary.

avatar infograf768 infograf768 - close - 12 May 2019
avatar infograf768 infograf768 - change - 12 May 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-05-12 07:03:31
Closed_By infograf768
Labels Added: ?
Removed: J3 Issue

Add a Comment

Login with GitHub to post a comment