未承認未完了

このコミットが含まれているのは:
守矢諏訪子 2021-11-17 18:36:56 +09:00
コミット 6addbf1527
1個のファイルの変更10行の追加1行の削除

ファイルの表示

@ -346,10 +346,19 @@ class MeetingsController extends Controller {
continue;
}
if (count($l->approvals) == MeetingApprovals::select($meeting_approvals_select)->whereNotNull('approval_at')->where('meeting_id', (int)$l->id)->count()) {
$cnt = MeetingApprovals::select($meeting_approvals_select)->whereNotNull('approval_at')->where('meeting_id', (int)$l->id)->count();
$acnt = count($l->approvals);
if ($acnt != 0 && $acnt == $cnt) {
continue;
}
if ($acnt == 0 && $cnt == 0) {
if (!in_array($l, $result)) {
$result[] = $l;
}
}
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();