? ? Pending

User tests: Successful: Unsuccessful:

avatar Quy
Quy
16 Jun 2019

Redo PR #21262.

Summary of Changes

Fix notice when no installer plugins.

Testing Instructions

Under Manage > Plugins, search Installer - Install.
Disable 4 plugins.
Go to System > Install > Extensions.
See notice.

Install PR.
No more notice.

Actual result

Notice: Undefined offset: 0 in \administrator\components\com_installer\tmpl\install\default.php on line 43

avatar Quy Quy - open - 16 Jun 2019
avatar Quy Quy - change - 16 Jun 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Jun 2019
Category Administration com_installer
avatar Quy Quy - change - 16 Jun 2019
The description was changed
avatar Quy Quy - edited - 16 Jun 2019
avatar richard67
richard67 - comment - 16 Jun 2019

I have tested this item successfully on f529843


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

avatar richard67 richard67 - test_item - 16 Jun 2019 - Tested successfully
avatar Quy Quy - change - 16 Jun 2019
The description was changed
avatar Quy Quy - edited - 16 Jun 2019
avatar SharkyKZ
SharkyKZ - comment - 18 Jun 2019

Do we need to render the tabset when no tabs are present?

avatar infograf768 infograf768 - change - 18 Jun 2019
Labels Added: ?
avatar infograf768
infograf768 - comment - 18 Jun 2019

I have tested this item successfully on 8b4ac13


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

avatar infograf768
infograf768 - comment - 18 Jun 2019

I have tested this item successfully on 8b4ac13


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

avatar infograf768 infograf768 - test_item - 18 Jun 2019 - Tested successfully
avatar infograf768 infograf768 - change - 18 Jun 2019
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 18 Jun 2019

rtc

@SharkyKZ

Not sure what you mean.


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

avatar infograf768
infograf768 - comment - 18 Jun 2019

rtc

@SharkyKZ

Not sure what you mean.


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

avatar SharkyKZ
SharkyKZ - comment - 18 Jun 2019

@infograf768 an empty tab set is rendered if all plugins are disabled. Maybe it's fine, not a big deal.

avatar Quy Quy - change - 18 Jun 2019
Labels Added: ?
avatar Quy
Quy - comment - 18 Jun 2019

@SharkyKZ You have a point. Since this PR is mainly to fix the notice, assuming it will be a rare scenario and not to complicate the PR, I am not going to worry about it. It can be done in a separate PR.

avatar SharkyKZ
SharkyKZ - comment - 18 Jun 2019

Just wrapping the tab set with $tabs check alone would fix the notice. But it's fine either way.

avatar Quy
Quy - comment - 18 Jun 2019

The following will have to be addressed $this->ftp and uitab.endTabSet. Ideally is to hide the entire <div id="installer-install" class="clearfix">.

avatar wilsonge
wilsonge - comment - 18 Jun 2019

The reason I've been holding on these PR's (i'm pretty sure it's not the only version of this hanging around) is because we shouldn't just delete plugin events. I'm not sure exactly what's changed to make this suddenly an issue in j4 when it wasn't in j3. But I'm pretty sure removing onInstallerViewBeforeFirstTab and onInstallerViewAfterLastTab can't be the correct solution for it

avatar SharkyKZ
SharkyKZ - comment - 18 Jun 2019

The events aren't an issue here. But they're not needed in J4. This is to do with IFW plugin. IFW 1.x used these events to decide tab order. In J4/IFW 2.0 we can just use plugin ordering. That already works in J3/IFW 2.0 but events can't be removed in J3.

avatar roland-d roland-d - change - 23 Jun 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-06-23 08:19:53
Closed_By roland-d
avatar roland-d roland-d - close - 23 Jun 2019
avatar roland-d roland-d - merge - 23 Jun 2019
avatar roland-d
roland-d - comment - 23 Jun 2019

Thank you.

Add a Comment

Login with GitHub to post a comment