Поле spec_id добавляется в структуру

This commit is contained in:
Alexander 2024-08-12 17:07:04 +03:00
parent 9ae73e81cf
commit 992a16dac9

View File

@ -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