From d6788455c4bccc0db8f1a4badba5b184dc7ebb1c Mon Sep 17 00:00:00 2001 From: Karnovsky A Date: Mon, 16 May 2016 15:12:38 +0300 Subject: [PATCH] fixes --- backend/controllers/BrandController.php | 1 - common/components/artboximage/ArtboxImage.php | 1 - common/config/main.php | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/controllers/BrandController.php b/backend/controllers/BrandController.php index c2e803f..1831b62 100755 --- a/backend/controllers/BrandController.php +++ b/backend/controllers/BrandController.php @@ -106,7 +106,6 @@ class BrandController extends Controller { $model = $this->findModel($id); if ($model->load(Yii::$app->request->post())) { - var_dump($_POST, $_FILES);exit; if ( ($image = UploadedFile::getInstance($model, 'imageUpload')) ) { $model->image = $image->name; } diff --git a/common/components/artboximage/ArtboxImage.php b/common/components/artboximage/ArtboxImage.php index 244bd62..07ce19d 100644 --- a/common/components/artboximage/ArtboxImage.php +++ b/common/components/artboximage/ArtboxImage.php @@ -49,7 +49,6 @@ class ArtboxImage extends Component { 'options' => $options, 'pluginOptions' => [ 'allowedFileExtensions' => array_keys($this->extensions), - // @todo set for multiple 'initialPreview' => $model->{$modelField} ? Html::img($model->{$modelField}) : '', 'overwriteInitial' => !$multiple, 'showRemove' => true, diff --git a/common/config/main.php b/common/config/main.php index 9692f7e..d81b1db 100755 --- a/common/config/main.php +++ b/common/config/main.php @@ -102,7 +102,7 @@ return [ 'product_list' => [ 'resize' => [ 'width' => 130, - 'height' => 70, + 'height' => 130, 'master' => null ], ], -- libgit2 0.21.4