Ken hace 2 semanas
padre
commit
12d70c8f71
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Helpers/helpers.php

+ 1 - 1
app/Helpers/helpers.php

@@ -7,7 +7,7 @@ if (!function_exists('list_to_tree')) {
     {
         $branch = [];
         foreach ($elements as $element) {
-            if ($element['$parentKey'] == $parentId) {
+            if ($element[$parentKey] == $parentId) {
                 $children = list_to_tree($elements, $element['id']);
                 if ($children) {
                     $element['children'] = $children;