From: marina Date: Wed, 24 Jul 2024 05:27:47 +0000 (+0300) Subject: ERP-122 Поправить открытие/закрытие смен на Южном бульваре X-Git-Tag: 1.4~61^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=6e45f7286dde843a0f8e9c64d9c99f0ba409a9ab;p=erp24_rep%2Fyii-erp24%2F.git ERP-122 Поправить открытие/закрытие смен на Южном бульваре --- diff --git a/erp24/forms/timetable/StartForm.php b/erp24/forms/timetable/StartForm.php index fb9be7a2..b7ad9178 100755 --- a/erp24/forms/timetable/StartForm.php +++ b/erp24/forms/timetable/StartForm.php @@ -111,7 +111,7 @@ class StartForm extends Model [['admin_id', 'store_id', 'device_id', 'type_id', 'd_id', 'ball', 'date'], 'required'], [['d_id'], 'exist', 'targetClass' => AdminGroup::class, 'targetAttribute' => 'id'], [['store_id'], function() { - $targetAdminId = $this->replaced_admin_id ?: $this->admin_id; + $targetAdminId = $this->admin_id ?: $this->replaced_admin_id; /** @var Admin $targetAdmin */ $targetAdmin = Admin::find()->andWhere(['id' => $targetAdminId])->one(); if (!in_array($this->store_id, $targetAdmin->getStoreIds())) {