Commit b75a0195 authored by Shakarim Sapa's avatar Shakarim Sapa

Debug;

parent 306bd609
......@@ -140,7 +140,7 @@ class DefaultController extends BaseController
// Перебираем все case-ы
foreach($cases as $case) {
// Проверили наличие отправки кейса юзеру
$scheduleExist = CasesSchedule::find()->where(['id' => $case->id, 'user_id' => $user->id])->exists();
$scheduleExist = CasesSchedule::find()->where(['case_id' => $case->id, 'user_id' => $user->id])->exists();
// Если отправка в расписании отсутствует
if (!$scheduleExist) {
// Заносим в расписание
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment