? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
28 Jun 2020

Summary of Changes

Remove dead code.

This code has never worked as $data doesnt exist in the scope

Its a copy and paste error from other controllers like

$this->app->setUserState('com_config.config.global.data', $data);

Testing Instructions

Hard to test as you would need to simulate a save failure

Actual result BEFORE applying this Pull Request

When editing the "Display Template Options" on the frontend - everything saves ok

If there was ever a condition (like ACL changed AFTER the form loaded) where the save failed, $data would not be "a thing" and so could not be saved to the session state and depending on PHP error reporting could show an undefined var notice

Expected result AFTER applying this Pull Request

When editing the "Display Template Options" on the frontend - everything saves ok

No notices on save failure

Documentation Changes Required

None

avatar PhilETaylor PhilETaylor - open - 28 Jun 2020
avatar PhilETaylor PhilETaylor - change - 28 Jun 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Jun 2020
Category Front End com_config
avatar PhilETaylor PhilETaylor - change - 28 Jun 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 28 Jun 2020
avatar alikon alikon - test_item - 27 Jul 2020 - Tested successfully
avatar alikon
alikon - comment - 27 Jul 2020

I have tested this item successfully on 560e117


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

avatar Quy Quy - test_item - 27 Jul 2020 - Tested successfully
avatar Quy
Quy - comment - 27 Jul 2020

I have tested this item successfully on 560e117


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

avatar Quy Quy - change - 27 Jul 2020
The description was changed
Status Pending Ready to Commit
avatar Quy Quy - edited - 27 Jul 2020
avatar Quy
Quy - comment - 27 Jul 2020

RTC


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

avatar wilsonge wilsonge - change - 4 Aug 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-08-04 22:32:52
Closed_By wilsonge
Labels Added: ? ?
avatar wilsonge wilsonge - close - 4 Aug 2020
avatar wilsonge wilsonge - merge - 4 Aug 2020
avatar wilsonge
wilsonge - comment - 4 Aug 2020

Thanks!

Add a Comment

Login with GitHub to post a comment