? Pending
Pull Request for # 9525

User tests: Successful: Unsuccessful:

avatar wojsmol
wojsmol
30 Mar 2016

Pull Request for Issue #9525

Original issue description

Steps to reproduce the issue

Upgrade from Joomla 3.4.8 to Joomla 3.5 on a very long living site.

Expected result

The title of admin menu item with title "com_contact" is renamed to "com_contact_contacts".

Actual result

The title of a menu item which is used on the frontend (title = 'Geschiedenis') is renamed to "com_contact_contacts". That means the main menu on my site now contains a item with title "com_contact_contacts".
System information (as much as possible)

- Upgrade from 3.4.8 to 3.5
- Long living installation, migrations and upgrades since Joomla 1.5
- Using MySQL database
- The IDs of the backend menu items (client_id = 1) are not equal to the ones in a clean Joomla installation.

Additional comments

Issue is caused by #8212 which uses a hardcoded menu item ID (8) to update the menu item title. Menu item ID 8 may be used for another than the meant one.
Fix proposal

I think other people with (somehow) non-default menu item IDs may/will have the same problem. My proposal is to only change the title for menu items which matches the follow criteria:
a) only backend menu items (client_id = 1)
b) with title = 'com_contact'
c) in a submenu (level = 2)

For MySQL the following query does the job from phpMyAdmin:
UPDATE jml_menu SET title = 'com_contact_contacts' WHERE client_id = 1 AND level = 2 AND title = 'com_contact'

If you agree I wil be happy to change the queries and submit another PR. I also can help testing for MySQL because I did not upgrade my production installation yet.

avatar wojsmol wojsmol - open - 30 Mar 2016
avatar wojsmol wojsmol - change - 30 Mar 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Mar 2016
Labels Added: ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 30 Mar 2016

and how do we test the PR?

avatar brianteeman brianteeman - change - 30 Mar 2016
Rel_Number 0 9525
Relation Type Pull Request for
avatar infograf768
infograf768 - comment - 31 Mar 2016

PR makes sense imho.
To test, I guess one has to change the id of this submenu to anything else than 8 on a 3.4.8 and then update with this PR included in the 3.5.x update pack.

avatar brianteeman brianteeman - change - 31 Mar 2016
Category Installation MS SQL Postgresql
avatar brianteeman brianteeman - change - 31 Mar 2016
Category Installation MS SQL Postgresql Installation MS SQL Postgresql SQL
avatar Luchen6 Luchen6 - test_item - 15 Apr 2016 - Tested successfully
avatar Luchen6
Luchen6 - comment - 15 Apr 2016

I have tested this item :white_check_mark: successfully on 84bed54

Same is true for the frontend menu
The title of the menu item 8 has changed to 'com_contact_contacts' after update from 3.4.8 to 3.5.0 and 3.5.1


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

avatar alikon alikon - test_item - 7 May 2016 - Tested successfully
avatar alikon
alikon - comment - 7 May 2016

I have tested this item :white_check_mark: successfully on 84bed54

i was unable to reproduce upgrading from 3.4.8. to 3.5.x even changing the menu item from 8 to 88888 before upgrading, so i think this issue only happens when you have started from an old site like (1.5 as already reported),

so based on code review seems good to me cause the where condition make more sense


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

avatar zero-24 zero-24 - change - 7 May 2016
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 7 May 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 7 May 2016
Labels Added: ?
avatar Kubik-Rubik
Kubik-Rubik - comment - 7 May 2016

Thank you @wojsmol and testers!

avatar Kubik-Rubik Kubik-Rubik - change - 7 May 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-07 12:20:10
Closed_By Kubik-Rubik
avatar Kubik-Rubik Kubik-Rubik - close - 7 May 2016
avatar Kubik-Rubik Kubik-Rubik - merge - 7 May 2016
avatar joomla-cms-bot joomla-cms-bot - close - 7 May 2016
avatar joomla-cms-bot joomla-cms-bot - change - 7 May 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment