small fixes

This commit is contained in:
2015-09-21 09:36:44 +02:00
parent b68c2dd20b
commit 8890727862
7 changed files with 20 additions and 22 deletions

View File

@@ -62,7 +62,7 @@ class WarehouseController extends Controller
public function actionCreate()
{
$model = new Warehouse();
$model->status = Warehouse::STATUS_ACTIVE;
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id_warehouse]);
} else {