From 992a16dac9962f8fb485146f3f9e25af8c720f1a Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 12 Aug 2024 17:07:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BB=D0=B5=20spec=5Fid=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F=D0=B5=D1=82=D1=81=D1=8F=20?= =?UTF-8?q?=D0=B2=20=D1=81=D1=82=D1=80=D1=83=D0=BA=D1=82=D1=83=D1=80=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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