From eb724c6dadf621ceb43f58010827fb492a035c8b Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Mon, 2 Sep 2024 14:52:36 +0300 Subject: [PATCH] =?utf8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?utf8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D1=83=20=D0=BD=D0=B0?= =?utf8?q?=20=D0=BD=D0=B0=D0=BB=D0=B8=D1=87=D0=B8=D0=B5=20=D0=BF=D0=B0?= =?utf8?q?=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=D0=BE=D0=B2=20=D1=84=D1=83?= =?utf8?q?=D0=BD=D0=BA=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/MotivationService.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index b9471ee7..b9d467af 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -160,6 +160,12 @@ class MotivationService */ public static function getMotivationDataTableSort($storeId = null, $year = null, $month = null) { + + // Проверка наличия обязательных параметров + if ($storeId === null || $year === null || $month === null) { + return []; + } + // 1. Запрос к таблице Motivation $motivation = Motivation::find() ->where([ -- 2.39.5