気に入りのデータ

このコミットが含まれているのは:
守矢諏訪子 2021-11-16 19:28:11 +09:00
コミット 58276bc4e5
1個のファイルの変更6行の追加14行の削除

ファイルの表示

@ -317,18 +317,14 @@ class MeetingsController extends Controller {
continue;
}
if (count($l->approvals->toArray()) != MeetingApprovals::select($meeting_approvals_select)->where('meeting_id', (int)$l->id)->count()) {
continue;
}
foreach ($l->approvals as $ii => $ll) {
if (null === ($ll->child = Child::select($child_select)->where('id', (int)$ll->child_id)->first())) {
$ll->child = new \stdClass();
}
}
if (!in_array($l, $result)) {
$result[] = $l;
}
if (!in_array($l, $result)) {
$result[] = $l;
}
}
@ -355,18 +351,14 @@ class MeetingsController extends Controller {
continue;
}
if (count($l->approvals) == MeetingApprovals::select($meeting_approvals_select)->whereNotNull('approval_at')->where('meeting_id', (int)$l->id)->count()) {
continue;
}
foreach ($l->approvals as $ii => $ll) {
if (null === ($ll->child = Child::select($child_select)->where('id', (int)$ll->child_id)->first())) {
$ll->child = new \stdClass();
}
}
if (!in_array($l, $result)) {
$result[] = $l;
}
if (!in_array($l, $result)) {
$result[] = $l;
}
}