From: Alexander Smirnov Date: Wed, 5 Jun 2024 14:29:14 +0000 (+0300) Subject: fix X-Git-Tag: 1.2^2~2^2~7 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=401140f397249b0265a6813cd02822940f2e3b51;p=erp24_rep%2Fyii-erp24%2F.git fix --- diff --git a/erp24/api2/controllers/ClientController.php b/erp24/api2/controllers/ClientController.php index b579b608..c8067f95 100644 --- a/erp24/api2/controllers/ClientController.php +++ b/erp24/api2/controllers/ClientController.php @@ -1074,7 +1074,7 @@ class ClientController extends BaseController { $promoCode = Promocode::find()->where(['code' => $result['code'], 'active' => '1'])->one(); /** @var $promoCode Promocode */ if (!$promoCode) { - return $this->asJson(["error_id" => 2, "error" => "unknown promo code"]); + return $this->asJson(["error_id" => 2, "error" => "промокод не известен"]); } $tip_sale = 'p_' . $result['code'];