? Failure

User tests: Successful: Unsuccessful:

avatar fevangelou
fevangelou
29 Apr 2020

Pull Request for Issue #28871

Summary of Changes

Steps to reproduce the original bug:

  • Hit the "Settings" toolbar button on any component (let's call it com_X) and you get redirected to the component's settings, loaded via com_config.
  • If you hit "Save & Close" you get redirected back to the exact URL you previously were on com_X.
  • If you hit "Cancel" you are redirected back to the component's main page (index.php?com_X) and NOT to the page you were in that component.

This PR properly adapts the code to respect the "return" variable (if it exists) and redirect back to the exact URL the user was on if they hit "Cancel".

Testing Instructions

Expected result

Actual result

Documentation Changes Required

None.

avatar fevangelou fevangelou - open - 29 Apr 2020
avatar fevangelou fevangelou - change - 29 Apr 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Apr 2020
Category Administration com_config
avatar fevangelou fevangelou - change - 29 Apr 2020
Labels Added: ?
avatar Formatio-hippocampi Formatio-hippocampi - test_item - 8 Sep 2020 - Tested successfully
avatar ghost
ghost - comment - 8 Sep 2020

I have tested this item successfully on 86a9356

  • open option=com_fields&view=fields&context=com_content.article
  • click Options
  • click Cancel
    -- Without PR redirect to option=com_content,
    -- with PR redirect to option=com_fields&view=fields&context=com_content.article

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28872.
avatar infograf768
infograf768 - comment - 8 Sep 2020

@SharkyKZ
Any further comment/advice?

avatar SharkyKZ
SharkyKZ - comment - 8 Sep 2020

Session data is still not being cleared.

avatar fevangelou
fevangelou - comment - 8 Sep 2020

Why does that matter exactly?

On Tue, Sep 8, 2020, 10:37 AM SharkyKZ notifications@github.com wrote:

Session data is still not being cleared.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#28872 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJ52G22EMPXMVRKCYX367DSEXNKVANCNFSM4MT2N27Q
.

avatar SharkyKZ
SharkyKZ - comment - 9 Sep 2020

We don't want old form data lingering in session. Cancel task should clear the data and perform the redirect. Also because com_config is broken in some ways, this introduces an issue of component's form data appearing in Global Configuration.

avatar gostn gostn - test_item - 24 Nov 2020 - Tested successfully
avatar gostn
gostn - comment - 24 Nov 2020

I have tested this item successfully on 86a9356


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

avatar zero-24
zero-24 - comment - 12 Jun 2022

I agree that this is an issue that should be fixed but I would propose to fix this issue within 4.2 and not change this within the 3.10 livetime. will close this PR please create a new pr against 4.2-dev so we get testers and fixed within j4

avatar zero-24 zero-24 - change - 12 Jun 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-06-12 17:43:55
Closed_By zero-24
Labels Added: ?
Removed: ?
avatar zero-24 zero-24 - close - 12 Jun 2022

Add a Comment

Login with GitHub to post a comment