複数子供
このコミットが含まれているのは:
コミット
7d46fd816b
|
@ -531,11 +531,18 @@ class MeetingsController extends Controller {
|
||||||
|
|
||||||
if (request()->route()->action['as'] != 'mdc') {
|
if (request()->route()->action['as'] != 'mdc') {
|
||||||
$result->children = [];
|
$result->children = [];
|
||||||
|
$rec = [];
|
||||||
|
|
||||||
if (null !== ($rel = FatherRelation::select('child_id')->where('father_id', (int)$result->father_id)->first())) {
|
if (null !== ($rel = FatherRelation::select('child_id')->where('father_id', (int)$result->father_id)->get())) {
|
||||||
if (null === ($result->children = Child::select($all_child_select)->where('id', $rel->child_id)->get()->toArray())) {
|
foreach ($rel as $i => $re) {
|
||||||
$result->children = [];
|
if (null !== ($rech = Child::select($all_child_select)->where('id', $re->child_id)->first())) {
|
||||||
|
if (!in_array($rech, $rec)) {
|
||||||
|
$rec[$i] = $rech;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$result->children = $rec;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($result->approval as $i => $a) {
|
foreach ($result->approval as $i => $a) {
|
||||||
|
|
新しいイシューから参照