? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
19 Sep 2020

When adjacent links go to the same location this results in additional navigation and repetition for keyboard and screen reader users. WCAG 2.4.4

The parent menu item for Smart Search is the same as the first child menu item.

Although the first one is disabled by the js and only acts as means to expand the submenu its still a problem for some assistive technologies.

This PR follows the pattern of all other core components and changes the parent link to index.php?option=com_finder

This can be tested either by performing a clean installation or by manually applying the sql in the update script.

Note that "database fix" will not apply the change in the update script as it is a content change not a structural change.

before

image

after

image

avatar brianteeman brianteeman - open - 19 Sep 2020
avatar brianteeman brianteeman - change - 19 Sep 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Sep 2020
Category SQL Administration com_admin Postgresql Installation
avatar Formatio-hippocampi Formatio-hippocampi - test_item - 20 Sep 2020 - Tested successfully
avatar Formatio-hippocampi
Formatio-hippocampi - comment - 20 Sep 2020

I have tested this item successfully on 2e49b38


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

avatar infograf768
infograf768 - comment - 20 Sep 2020

I am not sure about that
UPDATE #__menuSETlink='index.php?option=com_finder' WHERE id=13;

default com_finder menu in 3.x is not at id 13 but 18, which may mean that an update would chnage com_newsfeeds link instead of com_finder, if I do not mistake.

avatar brianteeman
brianteeman - comment - 20 Sep 2020

That is a different issue if correct

avatar richard67
richard67 - comment - 20 Sep 2020

No, it is not a different issue. You have to change the WHERE clause in your update SQL script to not use the ID, except if you can be sure that on any installation with any long update history it always has the same ID. This can not be granted, and so the golden rule is to never use the ID to identify a menu item for an update with an SQL update script.

If you want I can advise with a proper WHEREclause.

avatar richard67
richard67 - comment - 20 Sep 2020

I suggest to use the following where clause:

WHERE `menutype`='main' AND `title`='com_finder' AND `link`='index.php?option=com_finder&view=index'
avatar richard67
richard67 - comment - 20 Sep 2020

For example if someone had a Joomla 1.5 or so installation and updated it to 2.5, then the menuitem ID would be 21, see update SQL 2.5.0-2011-12-22.sql in the Joomla_2.5.28-Stable-Full_Package.zip, and it will still be 21 now after the years and all updates.

avatar alikon
alikon - comment - 20 Sep 2020

it seems more correct imho, the only left question is about the alternative admin menus that can be configured .....

avatar richard67
richard67 - comment - 20 Sep 2020

it seems more correct imho, the only left question is about the alternative admin menus that can be configured .....

@alikon Those will not have menutype='main'.

And no, it is not more correct, it is just correct, because using the ID as criteria in the WHERE clause is DEFINITELY wrong, see my previous comment about ID of that menu item being 21 when coming from pre-2.5 in the update history, and as @infograf768 wrote it is 18 on a new installed staging.

avatar alikon
alikon - comment - 20 Sep 2020

sorry my bad .... i've not checked deep that alternative admin menu have a proper different menutype

avatar brianteeman
brianteeman - comment - 20 Sep 2020

Happy to update - you should note that the code was copied from
administrator\components\com_admin\sql\updates\mysql\4.0.0-2019-05-05.sql

avatar brianteeman brianteeman - change - 20 Sep 2020
Labels Added: ?
avatar richard67
richard67 - comment - 20 Sep 2020

you should note that the code was copied from
administrator\components\com_admin\sql\updates\mysql\4.0.0-2019-05-05.sql

@brianteeman OMG!!! I have to check and if possible fix that! Thank you for that information,

avatar alikon
alikon - comment - 20 Sep 2020

oh shit ..... i need to ask to myself where i was when that s..... was proposed/merged

avatar richard67
richard67 - comment - 20 Sep 2020

@alikon Initially it was that one: #24801 . But let's continue that discussion somewhere else in order not to pollute this PR with off-topic. I will check and if necessary make an issue or PR.

avatar alikon
alikon - comment - 20 Sep 2020

sure right......ping me if you need help/tests on that matter

avatar alikon alikon - test_item - 20 Sep 2020 - Tested successfully
avatar alikon
alikon - comment - 20 Sep 2020

I have tested this item successfully on f579ff9


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

avatar richard67
richard67 - comment - 20 Sep 2020

@alikon Did you do a real test? Or just code review? Am preparing real test, but it takes time. It needs to test new installation with this PR applied and also update SQL statements test on a 4.0-dev for both MySQL and PostgreSQL.

avatar alikon
alikon - comment - 20 Sep 2020

i've made a quick test on my current staging 4.0-dev.... probably this is not enough....well i'll remove my test

avatar alikon alikon - test_item - 20 Sep 2020 - Not tested
avatar alikon
alikon - comment - 20 Sep 2020

I have not tested this item.

too much quick test


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

avatar richard67
richard67 - comment - 20 Sep 2020

@alikon No, it's ok. I'll do the complete test. From you it's ok with 1 real test and a code review.

avatar richard67
richard67 - comment - 20 Sep 2020

@alikon In your case, as you are an SQL expert with both MySQL and PostgreSQL, a code review could be sufficient ;-) Just wanted to know how you had tested, that's why I had asked. If you had said you have done all real tests I could have decided to be lazy and do the code review only ;-)

avatar richard67 richard67 - test_item - 20 Sep 2020 - Tested successfully
avatar richard67
richard67 - comment - 20 Sep 2020

I have tested this item successfully on f579ff9

Tested

avatar infograf768 infograf768 - test_item - 20 Sep 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 20 Sep 2020

I have tested this item successfully on f579ff9


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

avatar infograf768 infograf768 - change - 20 Sep 2020
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 20 Sep 2020

rtc
happy i could help...


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

avatar infograf768 infograf768 - change - 21 Sep 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-09-21 10:00:08
Closed_By infograf768
Labels Added: ?
avatar infograf768 infograf768 - close - 21 Sep 2020
avatar infograf768 infograf768 - merge - 21 Sep 2020
avatar infograf768
infograf768 - comment - 21 Sep 2020

Tks

avatar brianteeman
brianteeman - comment - 21 Sep 2020

thanks

Add a Comment

Login with GitHub to post a comment