Commit d6788455c4bccc0db8f1a4badba5b184dc7ebb1c
1 parent
49b00707
fixes
Showing
3 changed files
with
1 additions
and
3 deletions
Show diff stats
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, | ... | ... |