? Success

User tests: Successful: Unsuccessful:

avatar anibalsanchez
anibalsanchez
11 Jul 2016

Pull Request for Issue #11044.

Summary of Changes

I've restored how nested table deleted nodes until Joomla 3.5.

I think the problem was introduced as part as a code optimization that went too far here: 2819529

Testing Instructions

The key to force the bug #11044 is in the order of menu items.

  1. Modify _removeAdminMenus to force an inverse order of deletion, libraries/cms/installer/adapter/component.php, line 1087

    // Get the ids of the menu items
    $query = $db->getQuery(true)
                ->select('id')
                ->from('#__menu')
                ->where($db->quoteName('client_id') . ' = 1')
                ->where($db->quoteName('component_id') . ' = ' . (int) $id)
                ->order('id desc');
    
  2. Install Weblinks.

  3. Manually add a menu item (any type)
  4. Install Weblinks again.
  5. New menu item is removed!

Apply the patch and repeat the steps to verify that menu items are not removed.

avatar anibalsanchez anibalsanchez - open - 11 Jul 2016
avatar anibalsanchez anibalsanchez - change - 11 Jul 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Jul 2016
Labels Added: ?
avatar peteruoi peteruoi - test_item - 11 Jul 2016 - Tested successfully
avatar peteruoi
peteruoi - comment - 11 Jul 2016

I have tested this item successfully on 224a7bc

tested at 3.6rc2
I replicated the issue
and confirmed patch solved it (tested with patchtester).


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

avatar brianteeman brianteeman - change - 11 Jul 2016
Labels Added: ?
avatar anibalsanchez
anibalsanchez - comment - 11 Jul 2016

Hi @ggppdk, please, could you test this one as well to have it ready.

avatar ggppdk
ggppdk - comment - 11 Jul 2016

Testing ...

avatar ggppdk ggppdk - test_item - 11 Jul 2016 - Tested successfully
avatar ggppdk
ggppdk - comment - 11 Jul 2016

I have tested this item successfully on 224a7bc

Tested suggested case and a few others i could think of

(e.g. deleting the parent of a subtree of menu item or the parent category of some article categories, the subtrees are moved up as expected)

Did a file comparison too, indeed it reverts only the changes made by:
2819529

code is now same as J3.5.1
(except for the comments changes and the small dbo fix:)
#10369

that still exist (as they should)


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

avatar infograf768 infograf768 - change - 11 Jul 2016
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 11 Jul 2016

rtc. thanks


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

avatar joomla-cms-bot joomla-cms-bot - change - 11 Jul 2016
Labels Added: ?
avatar wilsonge wilsonge - change - 11 Jul 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-07-11 22:33:37
Closed_By wilsonge
avatar wilsonge wilsonge - close - 11 Jul 2016
avatar wilsonge wilsonge - merge - 11 Jul 2016
avatar joomla-cms-bot joomla-cms-bot - close - 11 Jul 2016
avatar wilsonge wilsonge - close - 11 Jul 2016
avatar joomla-cms-bot joomla-cms-bot - change - 11 Jul 2016
Labels Removed: ?
avatar wilsonge wilsonge - change - 11 Jul 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment