Commit d6788455c4bccc0db8f1a4badba5b184dc7ebb1c

Authored by Karnovsky A
1 parent 49b00707

fixes

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