? ? Pending

User tests: Successful: Unsuccessful:

avatar N6REJ
N6REJ
23 Oct 2020

Pull Request for Issue #30211

Summary of Changes

Removes unused $iconOver param.
In 1.5 days this was used as an override ( not hover as stated now ) but has never been implemented in 4.+ so might as well just remove it. If its determined later that its useful we can always create it because as it is now it does NOTHING.

Testing Instructions

notice that toolbar icons display.
apply pr.
make sure toolbar icons still display.
hover over icons notice the icons remain.

Actual result BEFORE applying this Pull Request

nothing noted

Expected result AFTER applying this Pull Request

no visual changes.

Documentation Changes Required

Deprecate $iconOver in 5.x

avatar N6REJ N6REJ - open - 23 Oct 2020
avatar N6REJ N6REJ - change - 23 Oct 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2020
Category Libraries
avatar SharkyKZ
SharkyKZ - comment - 23 Oct 2020

This can't be removed without rewriting all uses of the method (B/C break) or adding B/C layer based on argument count.

avatar N6REJ
N6REJ - comment - 23 Oct 2020

@SharkyKZ well, the thing is its not even used!!!

public static function custom($task = '', $icon = '', $iconOver = '', $alt = '', $listSelect = true, $formId = null)
{
$bar = Toolbar::getInstance('toolbar');
// Strip extension.
$icon = preg_replace('#\.[^.]*$#', '', $icon);
// Add a standard button.
$bar->appendButton('Standard', $icon, $alt, $task, $listSelect, $formId);
}

if you add $iconOver to the appendButton function it becomes a text value in place of the normal text.. i.e. everything is out of sync.
in 3.x it an override NOT hover ( which makes sense since it would be damn hard to create a hover I think )
if you look @ the function its is brought in in the function variables but then does nothing.
image
image
image

I'm open as to what to do because clearly I'd have TONS of icon,icon to change to icon, if I'm to do it 100% correct.
image

As it stands its totally broken.
in 1.5x you'll see its used as an override
#30211 (comment)

In 3.x you'll see its being used as ??
image
image

THAT would be extremely easy to implement though I would still have tons of icon,icon to clean up.

avatar N6REJ
N6REJ - comment - 23 Oct 2020

@wilsonge thoughts?

avatar N6REJ N6REJ - change - 23 Oct 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2020
Category Libraries Administration com_associations com_cache com_categories com_checkin com_contact com_finder com_installer com_joomlaupdate com_languages com_menus com_messages com_newsfeeds com_templates com_users Libraries
avatar N6REJ N6REJ - change - 23 Oct 2020
The description was changed
avatar N6REJ N6REJ - edited - 23 Oct 2020
avatar N6REJ
N6REJ - comment - 23 Oct 2020

After discussing @ length with @SharkyKZ we decided to leave the variable but deprecate its behavior.

avatar hans2103
hans2103 - comment - 23 Oct 2020

People might call for JToolbarHelper::custom('something', 'something', '', 'alt-text');. Removing it now will break b/c.
To make it deprecate is a good point. You can safely remove it in the next J version.

avatar brianteeman
brianteeman - comment - 23 Oct 2020

This should be closed #31211 (comment) and a new pr opened for the deprecation

avatar N6REJ
N6REJ - comment - 23 Oct 2020

This should be closed #31211 (comment) and a new pr opened for the deprecation

Thats what this is!

avatar N6REJ N6REJ - change - 23 Oct 2020
Title
remove unused $iconOver
[4.0] Deprecate unused $iconOver
avatar N6REJ N6REJ - edited - 23 Oct 2020
avatar brianteeman
brianteeman - comment - 23 Oct 2020

It is now you changed the title :)

avatar N6REJ N6REJ - change - 29 Oct 2020
Labels Added: Conflicting Files
avatar N6REJ N6REJ - change - 31 Oct 2020
Labels Removed: Conflicting Files
avatar Quy Quy - test_item - 31 Oct 2020 - Tested successfully
avatar Quy
Quy - comment - 31 Oct 2020

I have tested this item successfully on 29a54db


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

avatar jwaisner jwaisner - test_item - 2 Nov 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 2 Nov 2020

I have tested this item successfully on 70cbc49


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

avatar jwaisner
jwaisner - comment - 2 Nov 2020

I have tested this item successfully on 70cbc49


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

avatar Quy Quy - alter_testresult - 2 Nov 2020 - Quy: Tested successfully
avatar Quy Quy - change - 2 Nov 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 2 Nov 2020

RTC


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

avatar N6REJ N6REJ - change - 8 Nov 2020
Labels Added: ?
avatar richard67 richard67 - change - 14 Nov 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-11-14 13:25:44
Closed_By richard67
avatar richard67 richard67 - close - 14 Nov 2020
avatar richard67 richard67 - merge - 14 Nov 2020
avatar richard67
richard67 - comment - 14 Nov 2020

Thanks!

Add a Comment

Login with GitHub to post a comment