]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Форматирование кода
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 29 Nov 2024 13:19:09 +0000 (16:19 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 29 Nov 2024 13:19:09 +0000 (16:19 +0300)
erp24/controllers/ProductsController.php

index bf79b5ff7fa4c633021d92895d160ac26b75852f..f645137589a563dc90ed459d81c3a3b95a07f7c5 100755 (executable)
@@ -198,7 +198,6 @@ class ProductsController extends Controller
                 return $this->asJson(['error' => 'ID товара не передан']);
             }
 
-
             $characteristics = Products1cAdditionalCharacteristics::find()
                 ->where(['product_id' => $productId])
                 ->asArray()
@@ -232,8 +231,6 @@ class ProductsController extends Controller
             $id = Yii::$app->request->post('id');
             if (!empty($id)) {
                 $id = htmlentities($id);
-
-
                 $data = ProductsClass::find()->where(['category_id' => $id])->all();
                 $data2 = [];
 
@@ -262,7 +259,6 @@ class ProductsController extends Controller
             if (!empty($parent_id)) {
                 $parent_id = htmlentities($parent_id);
 
-
                 $data = Products1c::find()
                     ->alias('p')
                     ->select(['p.id', 'p.name', 'alias.entity_id', 'p.view'])
@@ -442,6 +438,7 @@ class ProductsController extends Controller
                 } else {
                     $errors = $productOption->getErrors();
                     $errorMessages = [];
+                    
                     foreach ($errors as $attribute => $messages) {
                         foreach ($messages as $message) {
                             $errorMessages[] = "Ошибка в поле '{$attribute}': {$message}";