diff --git a/app/app.php b/app/app.php index 04fb66e..3b08576 100644 --- a/app/app.php +++ b/app/app.php @@ -93,11 +93,10 @@ foreach ($sites as $site) { $needle = $con['spec_code']; foreach ($specializations as $spec) { if ($needle == $spec['kod']) { - $contingent[$key]['spec_id'] = $spec['id']; - continue; + $con['spec_id'] = $spec['id']; } } - $contingent[$key]['spec_id'] = null; + $contingent[$key]['spec_id'] = $con['spec_id']; } // Добавляем поле org_id