]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-88] Добавил проверку индекса как на флот так и на инт feature_smirnov_erp-88_upload_xlsx origin/feature_smirnov_erp-88_upload_xlsx
authorAlexander Smirnov <fredeom@mail.ru>
Fri, 16 Aug 2024 12:31:40 +0000 (15:31 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Fri, 16 Aug 2024 12:31:40 +0000 (15:31 +0300)
erp24/services/MotivationService.php

index 3ada8cd64f55cde12d184160b3e1e7cf85433ebc..7736861a0a60cc6653922150fb3c74a71f4dbbbe 100644 (file)
@@ -184,7 +184,7 @@ class MotivationService
                     break;
                 }
                 if ($storeStr) {
-                    if (!is_float($row[0] ?? -1)) {
+                    if (!is_float($row[0] ?? -1) && !is_int($row[0] ?? -1)) {
                         $error = "Индекс магазина не корректен [0,0] '" . $row[0] . "'";
                         break;
                     }