Commit 32a2b745723a8b582da3061c1206c38a9e843c3f

Authored by Alexey Boroda
2 parents 21aae226 fb24e167

Merge remote-tracking branch 'origin/master'

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
common/models/Customer.php
... ... @@ -157,8 +157,8 @@
157 157 }
158 158  
159 159 if ($file->saveAs(\Yii::getAlias('@storage/customers/') . $file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension)) {
160   - $this->image = $file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension;
161   - $this->file->name = '/storage/customers/'.$file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension;;
  160 + $this->image = '/storage/customers/'.$file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension;
  161 + $this->file->name = $file->baseName.'_'.Yii::$app->security->generateRandomString(5).'.'.$file->extension;;
162 162 return true;
163 163 }
164 164 return false;
... ...