]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-216] номера теперь уникальны feature_smirnov_erp-216_add_bonus_to_list_of_phones origin/feature_smirnov_erp-216_add_bonus_to_list_of_phones
authorAlexander Smirnov <fredeom@mail.ru>
Wed, 9 Oct 2024 07:16:12 +0000 (10:16 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Wed, 9 Oct 2024 07:16:12 +0000 (10:16 +0300)
erp24/actions/bonus/AddBonusToListOfPhones.php

index 625f5fb96b90e8bc3fd5d151525e31983105d718..dedd5729192a15ff3baef99a619fa06551c32c8f 100644 (file)
@@ -31,6 +31,7 @@ class AddBonusToListOfPhones extends Action
                 }
             }
             $phones = $phonesClean;
+            $phones = array_unique($phones);
 
             $tipSale = 'bonus' . date('Ymd');
             $alreadyPhones = ArrayHelper::getColumn(UsersBonus::find()->select(['phone'])->where(['phone' => $phones])