Commit d6788455c4bccc0db8f1a4badba5b184dc7ebb1c

Authored by Karnovsky A
1 parent 49b00707

fixes

backend/controllers/BrandController.php
@@ -106,7 +106,6 @@ class BrandController extends Controller @@ -106,7 +106,6 @@ class BrandController extends Controller
106 { 106 {
107 $model = $this->findModel($id); 107 $model = $this->findModel($id);
108 if ($model->load(Yii::$app->request->post())) { 108 if ($model->load(Yii::$app->request->post())) {
109 - var_dump($_POST, $_FILES);exit;  
110 if ( ($image = UploadedFile::getInstance($model, 'imageUpload')) ) { 109 if ( ($image = UploadedFile::getInstance($model, 'imageUpload')) ) {
111 $model->image = $image->name; 110 $model->image = $image->name;
112 } 111 }
common/components/artboximage/ArtboxImage.php
@@ -49,7 +49,6 @@ class ArtboxImage extends Component { @@ -49,7 +49,6 @@ class ArtboxImage extends Component {
49 'options' => $options, 49 'options' => $options,
50 'pluginOptions' => [ 50 'pluginOptions' => [
51 'allowedFileExtensions' => array_keys($this->extensions), 51 'allowedFileExtensions' => array_keys($this->extensions),
52 - // @todo set for multiple  
53 'initialPreview' => $model->{$modelField} ? Html::img($model->{$modelField}) : '', 52 'initialPreview' => $model->{$modelField} ? Html::img($model->{$modelField}) : '',
54 'overwriteInitial' => !$multiple, 53 'overwriteInitial' => !$multiple,
55 'showRemove' => true, 54 'showRemove' => true,
common/config/main.php
@@ -102,7 +102,7 @@ return [ @@ -102,7 +102,7 @@ return [
102 'product_list' => [ 102 'product_list' => [
103 'resize' => [ 103 'resize' => [
104 'width' => 130, 104 'width' => 130,
105 - 'height' => 70, 105 + 'height' => 130,
106 'master' => null 106 'master' => null
107 ], 107 ],
108 ], 108 ],