|
|
|
@ -73,9 +73,9 @@ if (!function_exists('get_select_child_data')) { |
|
|
|
if ($is_all) { |
|
|
|
$newData[] = [$str1 => __('admin.all'), $str2 => '']; |
|
|
|
} |
|
|
|
$child = $data['child'] ?? []; |
|
|
|
$child = $data['children'] ?? []; |
|
|
|
foreach ($data as $key => $value) { |
|
|
|
if ($key == 'child') { |
|
|
|
if ($key == 'children') { |
|
|
|
continue; |
|
|
|
} |
|
|
|
$arr = [ |
|
|
|
@ -84,7 +84,7 @@ if (!function_exists('get_select_child_data')) { |
|
|
|
]; |
|
|
|
if (isset($child[$key])) { |
|
|
|
foreach ($child[$key] as $childKey => $childValue) { |
|
|
|
$arr['child'][] = [ |
|
|
|
$arr['children'][] = [ |
|
|
|
$str1 => $childValue, |
|
|
|
$str2 => $childKey |
|
|
|
]; |
|
|
|
|