User tests: Successful: Unsuccessful:
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.
Status | New | ⇒ | Pending |
Category | ⇒ | SQL Administration com_admin Postgresql Installation |
I am not sure about that
UPDATE
#__menuSET
link='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.
That is a different issue if correct
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 WHERE
clause.
I suggest to use the following where clause:
WHERE `menutype`='main' AND `title`='com_finder' AND `link`='index.php?option=com_finder&view=index'
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.
it seems more correct imho, the only left question is about the alternative admin menus that can be configured .....
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.
sorry my bad .... i've not checked deep that alternative admin menu have a proper different menutype
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
Labels |
Added:
?
|
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,
oh shit ..... i need to ask to myself where i was when that s..... was proposed/merged
sure right......ping me if you need help/tests on that matter
I have tested this item
i've made a quick test on my current staging 4.0-dev.... probably this is not enough....well i'll remove my test
I have not tested this item.
too much quick test
@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 ;-)
I have tested this item
Tested
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
rtc
happy i could help...
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:
?
|
Tks
thanks
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.