From: marina Date: Thu, 18 Jul 2024 12:22:50 +0000 (+0300) Subject: правки первого шага X-Git-Tag: 1.4~70^2~3 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=d99f070d62dcdb6332f37c3c76c3987bd22a08ce;p=erp24_rep%2Fyii-erp24%2F.git правки первого шага --- diff --git a/erp24/actions/timetable/StartShiftStepOneAction.php b/erp24/actions/timetable/StartShiftStepOneAction.php index 65322668..9e1f5b69 100755 --- a/erp24/actions/timetable/StartShiftStepOneAction.php +++ b/erp24/actions/timetable/StartShiftStepOneAction.php @@ -44,6 +44,9 @@ class StartShiftStepOneAction extends Action return AdminCheckin::TYPE_START; })(); + $adminStores = null; + $shiftArray = null; + if ($modelTypeId == AdminCheckin::TYPE_START) { $adminStores = ArrayHelper::map($userModel->getStores(), 'id', 'name'); $shiftArray = ArrayHelper::map(Shift::find()->andWhere(['not in', 'id', [3, 4, 6, 7]])->all(), 'id', 'name');