From: Alexander Smirnov Date: Tue, 2 Apr 2024 10:34:10 +0000 (+0300) Subject: fix double quotes around value in pgsql X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e985967af2a339aa066fe457fca65909b5931f66;p=yii-erp24%2F.git fix double quotes around value in pgsql --- diff --git a/erp24/controllers/PlanStoreController.php b/erp24/controllers/PlanStoreController.php index ce4a6b6..5347b7e 100644 --- a/erp24/controllers/PlanStoreController.php +++ b/erp24/controllers/PlanStoreController.php @@ -250,7 +250,7 @@ class PlanStoreController extends Controller public function getStoreList() { $stores = CityStore::find()->innerJoin('store_dynamic', 'store_dynamic.store_id = city_store.id') - ->select(['cluster' => 'CONCAT_WS(" ", "Куст", store_dynamic.value_int)', 'store_name' => 'city_store.name', 'store_id' => 'city_store.id']) + ->select(['cluster' => 'CONCAT_WS(\' \', \'Куст\', store_dynamic.value_int)', 'store_name' => 'city_store.name', 'store_id' => 'city_store.id']) ->asArray() ->all();