From e16b79fde098b00ab47ecafe5e9cf56a806361d8 Mon Sep 17 00:00:00 2001 From: Karnovsky A Date: Thu, 24 Mar 2016 20:56:28 +0200 Subject: [PATCH] Base-product#3 functional --- common/modules/product/views/manage/_form.php | 2 ++ frontend/controllers/CatalogController.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/modules/product/views/manage/_form.php b/common/modules/product/views/manage/_form.php index 8ba47c5..fe71e38 100644 --- a/common/modules/product/views/manage/_form.php +++ b/common/modules/product/views/manage/_form.php @@ -90,6 +90,7 @@ use unclead\widgets\MultipleInputColumn; ]); ?> + all() as $group) :?> field($model, 'options')->checkboxList( ArrayHelper::map($group->options, 'tax_option_id', 'ValueRenderFlash'), @@ -99,6 +100,7 @@ use unclead\widgets\MultipleInputColumn; ] )->label($group->name);?> +
isNewRecord ? Yii::t('product', 'Create') : Yii::t('product', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> diff --git a/frontend/controllers/CatalogController.php b/frontend/controllers/CatalogController.php index 4d60cb5..46ee77e 100644 --- a/frontend/controllers/CatalogController.php +++ b/frontend/controllers/CatalogController.php @@ -70,7 +70,6 @@ class CatalogController extends \yii\web\Controller $brands_count = $brandsQuery->count(); $optionsQuery = TaxOption::find() -// ->select([TaxOption::tableName() .'.tax_option_id', TaxOption::tableName() .'.alias']) ->innerJoin(ProductOption::tableName(), ProductOption::tableName() .'.option_id='. TaxOption::tableName() .'.tax_option_id') ->innerJoin(ProductCategory::tableName(), ProductCategory::tableName() .'.product_id='. ProductOption::tableName() .'.product_id') ->where([ -- libgit2 0.21.4