Fixes dev/core#2424 navigation items order
authorJaap Jansma <jaap.jansma@civicoop.org>
Thu, 25 Feb 2021 14:02:34 +0000 (15:02 +0100)
committerJaap Jansma <jaap.jansma@civicoop.org>
Thu, 25 Feb 2021 14:02:34 +0000 (15:02 +0100)
CRM/Core/BAO/Navigation.php

index 43391cf4d89cfda1e73130a45bcf581151f5d848..24e58b8f106e81513a2062ef449388ab6f998a7f 100644 (file)
@@ -302,7 +302,7 @@ FROM civicrm_navigation WHERE domain_id = $domainID";
     });
 
     // If any of the $navigations have children, recurse
-    foreach ($navigations as $navigation) {
+    foreach ($navigations as &$navigation) {
       if (isset($navigation['child'])) {
         self::orderByWeight($navigation['child']);
       }